Click to See Complete Forum and Search --> : Applying HeaderName to subdirectories


Karthik
03-04-2003, 05:35 AM
I have an alias directive in httpd.conf as follows:
Alias /docs "F:/docs"

<Directory "F:/docs">
HeaderName HEADER.html
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

The header template HEADER.html is applied only to the toplevel "docs" but not to it's subdirectories. How to apply it to subdirectories also?

--Thanks

Rune
03-05-2003, 02:01 AM
Not positive but you may simply need to add a trailing slash to the real name and fake name like so:

Alias /docs/ "F:/docs/"

<Directory "F:/docs">
HeaderName HEADER.html
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

... and possibly one in <Directory "F:/docs/"> as well.

Karthik
03-05-2003, 05:58 AM
I tried your suggestion but didn't work :(

Rune
03-05-2003, 11:07 AM
Rats. 'Fraid I dunno then. :o