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

通过下面的网站下载最新版的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 local
ErrorDocument 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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值