apache 403错误 You don't have permission to access on this server.
在配置好了Apache服务器后,测试已经通过了,但是通过浏览器访问localhost时,出现403错误提示, Forbidden You don't have permission to access / on this server 请教出现这个问题的原因是什么呢?如何解决?
这是由于你更改了你的DocumentRoot,而更改了这个默认值后,下面还有一个值是要随着更改的。就在它下面不远的地方,有这样一段: # # This should be changed to whatever you set DocumentRoot to. # <Directory "\Your_New_DocumentRoot\"> 中括号里的内容就是你更改的新值。这样就不会出现403错误了。
<Directory "/var/www/html1/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
-----------------------------------------------
http://hi.baidu.com/vking/blog/item/bc50f3d380296adfa9ec9af4.html apache昨天调试了一下午,都没有解决这个问题,到今天上午,仔细检查了一遍配置文件httpd.conf,找到这么一段: <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow deny from all Satisfy all </Directory> 然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后再一测试我的网页,哈哈!居然问题就出在这,访问测试网站完全正常了
|
分享到:
相关推荐
Apache You don't have permission to access / on this server是一个在配置Apache时候,常常遇到的问题
主要介绍了apache You don't have permission to access /test.php on this server解决方法,需要的朋友可以参考下
键字: Apache 403 Forbidden 系统配置: 操作系统:Red Hat Linux 6.2 Web服务器:Apache 3.1.1+jakarta-tomcat 3.1.1 数据库服务器:oracle 8i Apache服务器是目前应用... You don’t have permission to access
主要介绍了WampServer设置apache伪静态出现404 not found及You don't have permission to access / on this server解决方法,较为详细的分析了几种常见情况,非常具有实用价值,需要的朋友可以参考下
本文实例讲述了WampServer设置apache伪静态出现404 not found及You don’t have permission to access / on this server解决方法。分享给大家供大家参考。具体如下: 出现404 not found 时: 确保LoadModule rewrite_...
You don't have permission to access / on this server. 更改D:\Installsoftware\apache\apache\httpd-2.2-x64\conf文件夹中的httpd.conf文件中 Options FollowSymLinks AllowOverride None Order deny,...
本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server.的提示,如何解决? 解决方法:...
今天调试一个项目,项目放在webroot下面的javascript目录,无论怎么设置都是403 You don’t have permission to access /javascript/ on this server. 思考过程 首先第一反应,Google了错误You don't have ...
一直在用APMServ5.2.6,mysql好办,可以用mariadb代替进行升级,但php...You don't have permission to access / on this server. Apache/2.4.9 (Win32) PHP/5.5.12 Server at www.sitename.com Port 80 一、在国内网
问题:配置Apache,httpd.conf... You don’t have permission to access the requested object. It is either read-protected or not readable by the server. If you think this is a server error, please contact t