xampp1.7.3开放外网访问权限的设置
作者:我就是个世界
发表于:2010-10-18
配置了XAMPP,但是外网好像访问不了,提示:Access forbidden
设置后xampp的security的密码后,发现不能登录,出现以下错误:
[code]
Access forbidden
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
[/code]
打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)[separator]
[code]
# 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 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
[/code]
看到权限设置了吧,那么修改的方法就是把上面代码中的那行 [color=#FF0000]Deny from all[/color] 注释掉, 也就是允许所有IP访问!
设置后xampp的security的密码后,发现不能登录,出现以下错误:
[code]
Access forbidden
New XAMPP security concept:
Access to the requested directory is only available from the local network.
This setting can be configured in the file “httpd-xampp.conf”.
[/code]
打开httpd-xampp.conf(/xampp/apache/conf/extra/httpd-xampp.conf)[separator]
[code]
# 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 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
81.196.40.94/32
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
[/code]
看到权限设置了吧,那么修改的方法就是把上面代码中的那行 [color=#FF0000]Deny from all[/color] 注释掉, 也就是允许所有IP访问!
请发表您的评论