嘗試通過瀏覽器訪問本地主機時出現此錯誤。Apache2:'AH01630:被服務器配置拒絕的客戶端'
AH01630: client denied by server configuration
我檢查使用我的網站文件夾的權限:
sudo chmod 777 -R *
這裏是我的配置文件:
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/user-name/www/myproject
<Directory />
Options FollowSymLinks
AllowOverride all
Allow from all
</Directory>
<Location />
Allow from all
Order Deny,Allow
</Location>
<Directory /home/user-name/www/myproject/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride all
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 all
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
你使用的是新的Apache 2.4嗎?哪條路徑給出了這個錯誤? – aadel
是的,Apache 2.4,當我試圖瀏覽應用程序目錄中的任何文件 –
時發生這種情況看起來您需要更新您的配置。 看看這裏:http://httpd.apache.org/docs/2.4/upgrading.html#run-time – aadel