欢迎来到我的资源网!
阿里云推广
阿里云推广

Apache

当前位置:首页 > 服务器教程 > Apache >

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

时间:2024-02-01 13:00:51|栏目:Apache|点击:0

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>

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:1435567186 | 邮箱:admin@wqjdym.top

Copyright © 2016-2025我的资源网 版权所有 鲁ICP备18026231号-3