代码改变世界

Access to the requested object is only available from the local network phpmyadmin

2014-07-25 14:24  三戒1993  阅读(221)  评论(0编辑  收藏  举报
http://stackoverflow.com/questions/11999371/access-to-the-requested-object-is-only-available-from-the-local-network-phpmyadm
先通过命令行搜索出httpd-xampp.conf文件,然后编辑
sudo find / -type f -name "httpd-xampp.conf" -print 

Comment "Deny from all" in the following section,

#
# New XAMPP security concept
#
 <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
        Order deny,allow
        Allow from all
        #Allow from ::1 127.0.0.0/8 \
             #      fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
               #    fe80::/10 169.254.0.0/16

        ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
    </LocationMatch>

版权声明:本文为博主原创文章,未经博主允许不得转载。