今天在CentOS下安装Xampp1.8.2
安装完毕之后发现无法用IP访问,出现以下提示
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".
网上通过注释掉Deny from all的方法对于新版本的Xampp来说并不奏效
解决办法依然是打开httpd-xampp.conf文件,文件目录:/opt/lampp/etc/extra/
找到
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require localhost
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
将其中的"Require localhost"改为"Require all granted"
保存,重启Xampp即可~
本文介绍了在CentOS环境下安装XAMPP1.8.2后遇到的无法使用IP访问的问题,并提供了详细的解决方案,包括修改httpd-xampp.conf文件的具体步骤。
1395

被折叠的 条评论
为什么被折叠?



