本地访问自然没问题,当局域网中其他主机想要访问网址的时候会出现Access forbidden!的错误,解决方法如下:
打开httpd-xampp.conf(/xampp/apache/conf/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 127.0.0.0/8
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
注:Deny from all注释掉,变成: #Deny from all
注:需要重启apache[/opt/lampp/lampp restartapache]