windows2008R2安装Xampp v1.8.3,提示403错误

来源:互联网 发布:淘宝宝贝排名工具 编辑:程序博客网 时间:2024/06/18 08:31
通过下面的网站下载最新版的xampp:
https://www.apachefriends.org/zh_cn/index.html
1、windows下的版本,目前最新版为了XAMPP 1.8.3-4,为32位版。我安装的就是这个版本
安装方法比较简单,只在开始安装时建议,安装到D盘,不要安装到C盘,因为C盘经常会被系统限制写入操作,很不方便学习。

2、初次运行后,通过外网联接时,可能会提示403错误,

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.

Error 403

192.168.255.139
Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11

解决方法是打开

d:\xampp\apache\conf\extra\httpd-xampp.conf


找到如下面所示的代码内容:

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">Require localErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var</LocationMatch>

在Require local前面添加一个#号,即可,添加后如下面所示:
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"><span style="background-color: rgb(255, 255, 255);"><span style="color:#ff0000;">#Require local</span></span>ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var</LocationMatch>

然后重新启动xampp,即好
0 0