httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Bligh <>
Subject [users@httpd] mod_access_compat issue
Date Thu, 26 Jun 2014 18:17:33 GMT
I have a site configuration that I would like to work on apache 2.4

# apache2ctl -v
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Apr  3 2014 12:20:28

Apache 2.4 (on Ubuntu 14.04) is more picky than 2.2 on Ubuntu 12.04
about directory permissions. This is due to the inclusion of the
following stanza in apache2.conf:

<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied

In order to get the site to work under Apache 2.4 I need to introduce
this stanza inside the host declaration. This works fine.

<Directory /path/to/my/site>
	Options -Indexes -SymLinksIfOwnerMatch +FollowSymLinks
        AllowOverride None
        Require all granted

However, I'd like my site configuration to work with apache 2.2 and
apache 2.4. mod_access_compat is loaded, so I use the following:

<Directory /path/to/my/site>
	Options -Indexes -SymLinksIfOwnerMatch +FollowSymLinks
        AllowOverride None
        Order Allow,Deny
        Allow from all

This fails giving a 404 with
"AH01630: client denied by server configuration"
in the log

I've also tried "Order allow,deny".

My understanding was that with mod_access_compat the two lines
given were exactly equivalent to "Require all granted".

Is there something I am missing here?

Alex Bligh

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message