XAMPP设置外网访问

时间:2022-10-26 08:33:57

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".


If you think this is a server error, please contact the webmaster.

打开httpd-xampp.conf文件

查找Require local


2.4以前版本:

#在Require local前面加#号,注释掉,取消只允许本地访问。

#Require local     ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

2.4以后版本:

将Require local替换为Require all granted就可以了。


最后重启Apache服务