简体   繁体   English

新鲜的fedora上的apache 2.4:AH01630:服务器配置拒绝了客户端

[英]apache 2.4 on fresh fedora: AH01630: client denied by server configuration

I've seen hudreds of questions like this and most of them end up in changing the syntax to latest Apache version or messing up with .htaccess. 我已经看到过类似这样的问题,其中大多数最终导致将语法更改为最新的Apache版本或将.htaccess弄乱了。 But not in my case since I used fresh F23 install and never played with erarlier Apache versions. 但由于我使用的是F23的全新安装,并且从未使用过较早的Apache版本,因此我没有这样做。 I'm trying to set up a simple virtual host that binds to one of my IP's. 我正在尝试建立一个绑定到我的IP的简单虚拟主机。 Here is what I put in /etc/httpd/conf.d/internal.conf 这是我放在/etc/httpd/conf.d/internal.conf中的内容

Listen 10.10.1.177:80
<VirtualHost 10.10.1.177:80>
        DocumentRoot "/home/www"
        DirectoryIndex index.html
        ServerName internal:80
        <Directory “/home/www“>
                Options All Indexes FollowSymLinks
                Options +Indexes
                Require all granted
        </Directory>
        LogLevel debug
        ErrorLogFormat "%{cu}t %M"
        ErrorLog /var/log/httpd/internal-error.log
        CustomLog /var/log/httpd/internal-access.log combined
</VirtualHost>

When I try: 当我尝试:

curl http://10.10.1.17

From other host in that network, first 403 page appears and get redirected to default fedora-apache page. 从该网络中的其他主机出现第一个403页面,并将其重定向到默认的fedora-apache页面。 This entries entries gets into error log: 此条目条目进入错误日志:

2016-04-21 22:45:50.610696 AH01626: authorization result of Require all denied: denied
2016-04-21 22:45:50.610724 AH01626: authorization result of <RequireAny>: denied
2016-04-21 22:45:50.610729 AH01630: client denied by server configuration: /home/www/
2016-04-21 22:45:50.610763 AH01626: authorization result of Require all granted: granted
2016-04-21 22:45:50.610771 AH01626: authorization result of <RequireAny>: granted

I just want this virtual server to serve anything that I put to /home/www. 我只希望该虚拟服务器可以提供我放在/ home / www上的任何内容。 What am I missing? 我想念什么?

I changed main httpd.conf file to bind to my other network interface. 我将主httpd.conf文件更改为绑定到其他网络接口。 I have "greped" all .conf files for "deny|denied" statements and found only default "Require all denied" for "/" directory and .ht files in main config. 我已经为“ deny | denied”语句 “抓住”了所有.conf文件,并在主配置中只为“ /”目录和.ht文件找到了默认的“需要所有被拒绝”

There is a LocationMatch directive in /etc/httpd/conf.d/welcome.conf that is causing this behavior: /etc/httpd/conf.d/welcome.conf中有一个LocationMatch指令导致此行为:

<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>

Comment out the comments of that file (or empty out that file), but do not remove that file, because a subsequent upgrade of the httpd package will then bring it back. 注释掉该文件的注释(或清空该文件),但不要删除该文件,因为随后对httpd软件包的后续升级会将其带回。 It will not be overwritten if you have modified it locally. 如果在本地进行了修改,它将不会被覆盖。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AH01630:客户端被服务器配置拒绝,但要求设置所有授予的权限(Apache 2.4,CentO) - AH01630: client denied by server configuration but require all granted is set (Apache 2.4, CentOs) AH01630:服务器配置Apache拒绝客户端 - AH01630: client denied by server configuration Apache Apache 2.4 + htaccess Require all denied = [authz_core:error] AH01630: 客户端被服务器配置拒绝 - Apache 2.4 + htaccess Require all denied = [authz_core:error] AH01630: client denied by server configuration AH01630: 客户端被服务器配置 htaccess 拒绝 - AH01630: client denied by server configuration htaccess AH01630:客户端被服务器配置 .htaccess 拒绝 - AH01630: client denied by server configuration .htaccess WampServer 3.0.0 AH01630:客户端被服务器配置拒绝: - WampServer 3.0.0 AH01630: client denied by server configuration: HTTPD/WSGI/Flask - AH01630:客户端被服务器配置拒绝 - HTTPD/WSGI/Flask - AH01630: client denied by server configuration AH01630:客户端被服务器配置拒绝:/data - AH01630: client denied by server configuration: /data Flask App获取AH01630:客户端被Apache中的服务器配置错误拒绝 - Flask App Getting AH01630: client denied by server configuration error in Apache Django wsgi Apache2:&#39;AH01630:客户端被服务器配置拒绝&#39; - Django wsgi Apache2: 'AH01630: client denied by server configuration'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM