xampp出现 Access forbidden! 问题解决
2015-08-03 18:08
525 查看
解决 XAMPP 出现 A今天安装了XAMPP 试了下,增加虚拟主机时出现没权限,apache配置文件httpd.conf的allow属性,把下图中的文字注释掉:
然后公开于外网出现以下错误,也很容易,但是记录下,也许别的工具也会出现类似的错误,但是没这么明显的提示也不一定,仅当参考。
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
test.com
Apache/2.4.1 (Win32) OpenSSL/1.0.0g PHP/5.4.0
意思也就是XAMPP的安全配置文件阻止,于是去httpd-xampp.conf这个文件中看看吧,怎么看?如下图:
ccess forbidden! 错误
点击之后是以记事本打开的,翻到最底部可以看到 New XAMPP security concept ,如此也就容易改了吧,默认的是使其只能内网访问,改为自己想要的结果吧。这里以全网开放为例,如图……
修改后,重启服务器即可。
然后公开于外网出现以下错误,也很容易,但是记录下,也许别的工具也会出现类似的错误,但是没这么明显的提示也不一定,仅当参考。
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
test.com
Apache/2.4.1 (Win32) OpenSSL/1.0.0g PHP/5.4.0
意思也就是XAMPP的安全配置文件阻止,于是去httpd-xampp.conf这个文件中看看吧,怎么看?如下图:
ccess forbidden! 错误
点击之后是以记事本打开的,翻到最底部可以看到 New XAMPP security concept ,如此也就容易改了吧,默认的是使其只能内网访问,改为自己想要的结果吧。这里以全网开放为例,如图……
修改后,重启服务器即可。
相关文章推荐
- [经验]我的电脑只有IE64位浏览器能上网,其他软件都上不了网
- 程序员的出路之一
- hdu4585 shaolin Treap
- Drawable Resources
- Android复习笔记(3)-android下的junit
- web.xml 配置中classpath: 与classpath*:的区别
- iOS之自定义导航按钮UIBarButtonItem的样式
- hdu 5327
- Qt无边框MainWindow如何拖动四周改变大小
- 输出文件奇偶行
- Android图片缩放库 Photoview 和 Gif 控件GifView 的使用
- easyUI的combox三级联动
- 天气预报接口api(中国天气网)
- 【iOS开发】---- SDWebImage支持webp格式的图片
- sigaction 的使用
- POJ 2448(K短路,A*+SPFA) Remmarguts' Date
- Socket与WSASocket的区别
- CentOS6.5安全策略设置
- Android拨号
- Android复习笔记(2) - Intent介绍