httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject Re: [users@httpd] Apache directory access & Suse AppArmor
Date Thu, 16 Oct 2008 11:34:52 GMT
On Wed, Oct 15, 2008 at 8:52 AM, Yoom Nguyen <> wrote:
> Eric,
> It seems if I enable /srv/www/domainroot/images/* via AppArmor then
> I don't even need to declare <Directory "/images/"> in Apache configuration file.
 Is this true?

It's true that making the files unreadable via the OS prevents Apache
from reading them.

> I assume apache2 will not allow something like this?
> <Directory "/images/">
>      Options None
>      Order deny,allow
>      Deny from all
>      Allow from
>      Allow from
>      Allow from
>      Allow from
>      Allow from
> </Directory>

You still have "/images/" instead of  "/srv/www/domainroot/images/" so
I suspect this stanza doesn't do anything.  You can use multiple Allow

They're largely irrelevant if you've configured the OS to not permit
Apache to read the files.

> How can I protect an directory without using AppArmor?
> Can you provide some example please.

Your default config likely has examples.

Eric Covener

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message