小风儿 发表于 2015-11-3 11:27:07

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 &quot;^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))&quot;>
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

在Require local前面添加一个#号,即可,添加后如下面所示:

<LocationMatch &quot;^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))&quot;>
<span style=&quot;background-color: rgb(255, 255, 255);&quot;><span style=&quot;color:#ff0000;&quot;>#Require local</span></span>
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

然后重新启动xampp,即好
版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: windows2008R2安装Xampp v1.8.3,提示403错误