apache - Apache許可權被拒絕( 許可權 755 )

  显示原文与译文双语对照的内容
71 4

我收到消息:

Forbidden 
You don't have permission to access/on this server.

Apache的路徑:/var/www.的配置 (/etc/apache2/{apache.conf, 。conf}是正確的,因為在其他時候,它是工作的。文件夾/var/www的許可權為:755.

問題是:我刪除了 root (/root ) Ant的主文件夾,然後我就有了這個錯誤。

/sites-available/000-defaults:的文件配置

DocumentRoot/var/www/
<Directory/var/www/>
 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
<Location/php/cron>
 Order Deny,Allow
 Deny from all
 Allow from localhost ip6-localhost 176.9.21.77
 Satisfy any
</Location>

Apache的錯誤日誌:

( 13 ) 許可權被拒絕:/. htaccess pcfg_openfile:無法檢查htaccess文件,確保它是可讀

时间:原作者:0个回答

51 3

解決方案是在文件夾/etc/apache2/. 中的許可權,我們需要修改 744級許可權到 755.

原作者:
...