外网访问xampp1.8,出现New XAMPP security concept解决办法。

来源:互联网 发布:淘宝店铺商品采集 编辑:程序博客网 时间:2024/04/29 16:52

centos装完xampp后,其他人访问出现:

Access forbidden!


New XAMPP security concept:

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

This setting can be configured in the file "httpd-xampp.conf".


百度上提供的有些解决方法不管用,我是这样改的:
解决方法: 打开httpd-xampp.conf(位置在: /opt/lampp/etc/extra/httpd-xampp.conf) 

# New XAMPP security concept # <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))”> Order deny,allow Deny from all Allow from ::1 127.0.0.0/8 \ ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var </LocationMatch> 需要注释#   Require local

修改完后保存并重启apache,[/opt/lampp/lampp restartapache],就可以访问了。
0 0