mod_access_compat issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
</Directory>

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
</Directory>

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
</Directory>

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: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux