Apache:客户端被服务器configuration拒绝

我已经从apache 2.2.22切换到apache 2.4.10,突然之间我用来访问一些日志的别名不再起作用。

这是我的configuration文件:

<VirtualHost *:80> ServerAdmin webmaster@localhost ServerName mdvns-sequencer DocumentRoot /var/www/ <Directory /var/log/mdvns/> Order allow,deny Allow from all Options +Indexes </Directory> Alias /logs/ /var/log/mdvns/ <Directory /var/www> AddHandler cgi-script .py 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 </VirtualHost> 

当我尝试访问/ logs /(我设置的别名)时,我得到了一个403禁止。 error.log有以下消息:

 [Sat Jan 01 00:38:25.348732 2000] [authz_core:error] [pid 1256:tid 3053450288] [client 192.168.2.135:64882] AH01630: client denied by server configuration: /var/log/mdvns/ 

我已经完成了维基中的所有内容,但是找不到解决scheme。 其中的目录和文件对所有者/组/其他人具有读访问权限。 该目录肯定是在那里,input更正。

我应该注意,如果我尝试访问/ logs /目录中的文件,则会得到相同的错误。

有任何想法吗?

权限选项在2.4中更改。 有关2.4升级文档的更多信息

代替

 <Directory /var/log/mdvns/> Order allow,deny Allow from all Options +Indexes </Directory> 

尝试

 <Directory /var/log/mdvns/> Options +Indexes AllowOverride All Require all granted </Directory> 

与/ var / www目录相同