Search code examples
apache.htaccessrequire

Apache 2.4 + htaccess Require all denied = [authz_core:error] AH01630: client denied by server configuration


Ubuntu 18.04 + Php 7.4 + Apache 2.4

Everything working fine, websites are ok.

But i use .htaccess to protect some files or directories.

On previous apache, i used

        Order allow,deny
        Deny from all

But i got the error

        [access_compat:error]  AH01797: client denied by server configuration:

So i update the htaccess with apache 2.4 code

        <Files ".ht*">
        Require all denied
        </Files>

But now i got the error

        [authz_core:error]  AH01630: client denied by server configuration:

What's wrong ? How to fix that ?

Thanks


Solution

  • As CBroe said, https://cwiki.apache.org/confluence/display/HTTPD/ClientDeniedByServerConfiguration in fact, it's a normal msg. No error.