
Overriding directory directives
I have the following:
<Directory />
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs">
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from [at] apache.allow.from [at]
</Directory>
<Directory "/srv/www/htdocs/documents">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from [at] apache.allow.from [at]
</Directory>
I basically want an index view for /srv/www/htdocs/documents, but
nothing else. It seems the first directive is overriding the second, is
this correct? How do I resolve this?
Thanks in advance,
Dean.
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> I have the following:
[snip]
> Options -Indexes FollowSymLinks MultiViews
This could be the problem. Mixing relative and non-relative options in
the same directives is broken. See:
http://people.apache.org/~rbowen/presentations/apacheconEU20 05/hate_apache.pdf
Specifying just "Options FollowSymLinks MultiViews" means that Indexes
are disabled, because the list is taken to be absolute, meaning: just
these options.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RE: Overriding directory directives
Thanks for the tip, I did read something similar myself...but I've tried
it and it didn't work :-/
-----Original Message-----
From: Vincent Bray [mailto:noodlet [at] gmail.com]
Sent: 09 July 2007 12:14
To: users [at] httpd.apache.org
Subject: Re: [users [at] httpd] Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> I have the following:
[snip]
> Options -Indexes FollowSymLinks MultiViews
This could be the problem. Mixing relative and non-relative options in
the same directives is broken. See:
http://people.apache.org/~rbowen/presentations/apacheconEU20 05/hate_apac
he.pdf
Specifying just "Options FollowSymLinks MultiViews" means that Indexes
are disabled, because the list is taken to be absolute, meaning: just
these options.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Scanned by MailDefender - managed email security from intY -
www.maildefender.net
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> Thanks for the tip, I did read something similar myself...but I've tried
> it and it didn't work :-/
Could you be a little more specific? If you're just not seeing
indexes, it could be that you don't have mod_autoindex loaded, or else
your Options directive is in the wrong context and being overriden
elsewhere, such as in a vhost.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RE: Overriding directory directives
It produces a 403:
Forbidden
You don't have permission to access /documents/ on this server.
If I remove Indexes from the first directory directive on /, then it
works as required.
-----Original Message-----
From: Vincent Bray [mailto:noodlet [at] gmail.com]
Sent: 09 July 2007 13:27
To: users [at] httpd.apache.org
Subject: Re: [users [at] httpd] Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> Thanks for the tip, I did read something similar myself...but I've
tried
> it and it didn't work :-/
Could you be a little more specific? If you're just not seeing
indexes, it could be that you don't have mod_autoindex loaded, or else
your Options directive is in the wrong context and being overriden
elsewhere, such as in a vhost.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Scanned by MailDefender - managed email security from intY -
www.maildefender.net
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> It produces a 403:
>
> Forbidden
>
> You don't have permission to access /documents/ on this server.
>
> If I remove Indexes from the first directory directive on /, then it
> works as required.
But in the OP your <Directory /> block didn't have an Options
directive. Could you post the latest copy? Do you have any
(potentially hidden) vhosts? Use httpd -S to check.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RE: Overriding directory directives
<Directory />
Options
AllowOverride None
Order Deny,Allow
Deny from all
</Directory>
<Directory "/srv/www/htdocs">
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/srv/www/htdocs/documents">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
-----Original Message-----
From: Vincent Bray [mailto:noodlet [at] gmail.com]
Sent: 09 July 2007 13:36
To: users [at] httpd.apache.org
Subject: Re: [users [at] httpd] Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> It produces a 403:
>
> Forbidden
>
> You don't have permission to access /documents/ on this server.
>
> If I remove Indexes from the first directory directive on /, then it
> works as required.
But in the OP your <Directory /> block didn't have an Options
directive. Could you post the latest copy? Do you have any
(potentially hidden) vhosts? Use httpd -S to check.
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Scanned by MailDefender - managed email security from intY -
www.maildefender.net
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> <Directory />
> Options
I don't believe that's valid. Use "Options None" if you want that, but
consider keeping Options Symlinks enabled for the whole server which
will speed things up a bit.
> AllowOverride None
> Order Deny,Allow
> Deny from all
> </Directory>
>
> <Directory "/srv/www/htdocs">
> Options FollowSymLinks MultiViews
>
> AllowOverride None
>
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory "/srv/www/htdocs/documents">
> Options Indexes FollowSymLinks MultiViews
>
> AllowOverride None
>
> Order allow,deny
> Allow from all
> </Directory>
>
Nothing wrong there unless as I mentioned earlier there's a
VirtualHost block somewhere that's overriding the /documents/ area.
See:
http://httpd.apache.org/docs/2.2/sections.html
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RE: Overriding directory directives
Ok thanks for the help Vincent, I'll have a look into the virtual hosts
etc, though they seem not to have any directory declarations within them
at all.
-----Original Message-----
From: Vincent Bray [mailto:noodlet [at] gmail.com]
Sent: 09 July 2007 13:46
To: users [at] httpd.apache.org
Subject: Re: [users [at] httpd] Overriding directory directives
On 09/07/07, Dean Pullen <dean.pullen [at] msp-uk.com> wrote:
> <Directory />
> Options
I don't believe that's valid. Use "Options None" if you want that, but
consider keeping Options Symlinks enabled for the whole server which
will speed things up a bit.
> AllowOverride None
> Order Deny,Allow
> Deny from all
> </Directory>
>
> <Directory "/srv/www/htdocs">
> Options FollowSymLinks MultiViews
>
> AllowOverride None
>
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory "/srv/www/htdocs/documents">
> Options Indexes FollowSymLinks MultiViews
>
> AllowOverride None
>
> Order allow,deny
> Allow from all
> </Directory>
>
Nothing wrong there unless as I mentioned earlier there's a
VirtualHost block somewhere that's overriding the /documents/ area.
See:
http://httpd.apache.org/docs/2.2/sections.html
--
noodl
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Scanned by MailDefender - managed email security from intY -
www.maildefender.net
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org