xampp出现 Access forbidden! 问题解决

解决 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 ,如此也就容易改了吧,默认的是使其只能内网访问,改为自己想要的结果吧。这里以全网开放为例,如图……

修改后,重启服务器即可。

时间: 2024-08-13 01:57:23

xampp出现 Access forbidden! 问题解决的相关文章

xampp Apache Access forbidden! Error 403解决方法

今天下载了最新的xampp,配置了一个虚拟主机,一直在报错,Access forbidden! Error 403 这很明显是服务器不允许访问文件,但是我的虚拟主机配置如下: DocumentRoot "D:/work/test" ServerName test Options None Order allow,deny Allow from all 竟然还是访问不成功,折腾了一会终于发现在httpd.conf里面有这个配置. 把这个改成如下配置,重启apache就行了. 我想这应该是

mac上的xampp出现Access forbidden! You don’t have permission to access the requested object. It is either

一个Joomla!程序,之前是在win上的xampp上运行得非常好的,当我把它拿到mac下面的xampp上去运行的时候,发现有问题,没法运行,报以下的错误: Access forbidden!  You don't have permission to access the requested object. It is either read-protected or not readable by the server. 这时可以找到apache的httpd.conf文件,找出<Direct

xampp Apache Access forbidden 解决方法

将httpd.conf中的 <Directory /> AllowOverride none Require all denied </Directory> 改成 <Directory /> Order deny,allow Allow from all </Directory> 即可

XAMPP项目目录自定义后403 Access Forbidden

XAMPP安装过程不细述了,先来简单回顾一下XAMPP配置: \xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:80> ServerAdmin [email protected]domain.td DocumentRoot "盘符:/路径/项目目录" ServerName domain.td # domain.td 为自定义服务器名,只要你喜欢...随意 ServerAlias www.domain.td #

[微信营销企划之路]003.Access forbidden!

引言 继<[微信营销企划之路]001.环境搭建(XAMPP+WeiPHP)>后,有不少朋友反应按照001教程配置虚拟多站点(<VirtualHost/>)后,部分站点会出现Access forbidden!情况. 这该如何解决呢,似乎网上大部分解决方案都不起效果.下面就由SuperDo#AC为大家解答疑惑. 1.症状 2.解决方案 1.症状 Access forbidden! You don't have permission to access the requested dir

Access forbidden的解决方法

LAMP模型下运行项目文件,出现下面错误: Access forbidden! You don't have permission to access the requested directory. 解决方法: 用IDE打开下面目录:httpd.conf文件找到 DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/mytest"<Directory "/Applications/XAMPP/xamppfiles/ht

Access forbidden! You don&#39;t have permission to access the requested object. It is either read-protected or not readable by the server

好久不没弄 apache和php了,突然遇到这种奇葩的问题,本来想直接在网上找现成的解决思路,结果网上搜索花了不少功夫,也没找到原因. 后来看日志文件:apache\logs\error.log发现了蛛丝马迹. [core:error] [pid 200:tid 1704] (20024)The given path is misformatted or contained invalid characters: [client 127.0.0.1:51040] AH00127: Cannot

使用SVN时 URL access forbidden for unknown reason

使用SVN在eclipse中提交文件,但是出现错误,如下: URL access forbidden for unknown reasonsvn: Commit failed (details follow):svn: Access to ** forbidden 但是更新项目可以,网上查了原因是之前只用用户登录之后保存了密码,换用新的用户之后就出现这样的问题. 解决方法如下: 1. 查看你的Eclipse中使用的是什么SVN Interface 查看方法:在eclipse中按菜单 window

SVN Error:URL access forbidden for unknown reason

网络学堂项目 项目换了svn地址后,更新项目可以,但是提交会Error. 详细log是: URL access forbidden for unknown reasonsvn: Commit failed (details follow):svn: Access to ** forbidden 解决方法如下: 1. 查看Eclipse中使用的是什么SVN Interface 查看方法:在eclipse中按菜单 windows > preference > Team > SVN #SVN接