You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Warhurst, SI (Spencer) " <S....@rl.ac.uk> on 2003/05/15 14:59:01 UTC

[users@httpd] Custom directory listings

Hi

I have a user files area on my web server (win2k):

   d:\www\files\

under that folder are hundreds of sub-folders:

   d:\www\files\user1\
   d:\www\files\user2\
   d:\www\files\user3\
   etc

In d:\www\files\ I have placed header.html and footer.html which contain the
custom HTML to display when a user goes to their file area. In the
httpd.conf file, I have the following:

   <Directory "d:/www/files">
       Options Indexes FollowSymLinks
       AllowOverride All
       HeaderName "../header.html"
       ReadmeName "../footer.html"
       IndexOptions DescriptionWidth=75
   </Directory>

Now that all works fine, because when user1 goes to their files area at
d:\www\files\user1\, Apache drops one directory to find the header.html &
footer.html files.

However, it's this relative nature that messes me up when I come to what I
want to do next. That is, say user1 wants subdirectories in his file area,
like:

   d:\www\files\user1\images\
   d:\www\files\user1\docs\
   etc

They will get the nice header & footer when they are in \user1\, but not
when they are in \users1\docs\.

How can I make the configuration all-encompassing, so that *any* directory
under d:\www\files\, regardless of how many levels down it is, will display
header.html & footer.html?

Thanks

Spencer


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Custom directory listings

Posted by Thomas Strike <st...@pacbell.net>.
Try specifying an absolute directory path ("d:\www\files\header.html") 
instead of a relative path ("..\Header.html").

Cheers,
Tom S.
http://www.SleepyValley.net/me



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org