无法访问解决方法版本

Apache 2.4.2无法访问错误代码为403的解决方法

服务器技术 2020-06-18 13:37:34 23

导读

2.4.2版本的apache中需要在目录下面添加Requireallgranted,否则无论怎么访问都是403,悲了个催的!具体报错如下:[FriAug1019:07:13.2638932012][authz_core:error][pid8918:tid1126259008][client192.168.123.102:53420]AH01630:clientdeniedbyserverconfiguration:/tmp[root……

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

[root@db1 ~]# grep -v '^#' /usr/local/apache/conf/extra/httpd-vhosts.conf |grep -v '^$'
<VirtualHost *:80>
  ServerName 192.168.123.110
  <Location />
  Order deny,allow
  Deny from all
  </Location>
</VirtualHost>
<VirtualHost *:80>
  ServerName   file.zyku.net
  DocumentRoot /tmp
    <Directory /tmp>
    Options +indexes
    Order allow,deny
    Allow from all
    Require all granted
    </Directory>
</VirtualHost>


1253067 TFnetwork_cn