Apache的错误:Forbidden-您没有权限访问/在此服务器上 [英] Apache Error: Forbidden- You don't have permission to access / on this server
本文介绍了Apache的错误:Forbidden-您没有权限访问/在此服务器上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直试图访问我的网站时得到那个Forbidden错误。我,为什么是这种情况相当混乱。
I keep getting that Forbidden error when attempting to access my site. I am quite confused as to why this is the case.
刚路可走在上面,我把它使用到无人目录的权限:nogroup,并给他们的rwx。
我已经索引启用。
这是我的conf:
Just to go way over the top, I set the permissions of the directory it is using to nobody:nogroup, and gave them rwx. I have indexing enabled. This is my conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName myserver.net
DocumentRoot /srv/sites/live/myserver
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /srv/sites/live/myserver>
DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
我
为什么会得到这个错误?
Why do I get that error?
编辑:目录存在,而我正在的Ubuntu 12.10
The directory exists, and I am running Ubuntu 12.10
推荐答案
我unbeknowingly刚刚升级为 Apache2.4
。
I unbeknowingly had just upgraded to Apache2.4
.
我不得不添加要求所有批准
而不是令允许,拒绝
。
这篇关于Apache的错误:Forbidden-您没有权限访问/在此服务器上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文