常州五颜六色网络技术有限公司 -> 技术文档 -> apache 2.4.2 出现 authz_core:error 错误 登录 -> 注册 -> 回复主题 -> 发表主题

deserts 2015-07-23 11:49
2.4.2版本的apache中需要在目录下面添加 Require all granted,否则无论怎么访问都是403,具体报错如下:

[Fri Aug 10 19:07:13.263893 2012] [authz_core:error] [pid 8918:tid 1126259008] [client 192.168.123.102:53420] AH01630: client denied by server configuration: /tmp

CODE:
<VirtualHost *:80>
  ServerName   d8.5y6s.com
  DocumentRoot /tmp
  <Directory /tmp>
   Options +indexes
   Order allow,deny
   Allow from all
   Require all granted
  </Directory>
</VirtualHost>

deserts 2015-09-07 14:08
CODE:
<VirtualHost *:80>
ServerName [url]www.5y6s.com[/url]
DocumentRoot "/home/www/5y6s.com"
DirectoryIndex index.html index.php

<Directory "/home/www/5y6s.com">
Options -Indexes +FollowSymlinks
AllowOverride All
Require all granted
</Directory>

</VirtualHost>


查看完整版本: [-- apache 2.4.2 出现 authz_core:error 错误 --] [-- top --]



Copyright © 2005-2014 5y6s Inc. 苏ICP备05001866号 Powered by PHPWind 5.0.1
Time 0.015505 second(s),query:4 Gzip enabled