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.

原作者:
...