apache(V2.4)下载文件配置

apache(V2.4)下载文件配置问题遇到及处理

原来配置:

DocumentRoot "/wd/htdocs"
<Directory "/wd/htdocs">
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>

及apache指向文件的是/wd/htdocs文件夹下

但是升级成2.4版本后,不但下载不了文件,也不能够显示图片。

 排查方法:

1.查看httpd.conf文件的配置

2.查看/wd/apache-2.4.3/logs/access_log文件

表明是403错误,权限问题 应该

3.继续查看配置文件

#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all denied
</Directory>

这个是拒绝了所有的请求。

注释之

4.重启apache服务器

 

完美解决!

 

 

你可能感兴趣的:(apache,Web,server,服务器,Access)