Forum Moderators: phranque

Message Too Old, No Replies

Is there a way to change the Apache auto index file

to include your site design and logo

         

PFOnline

2:15 am on Jun 1, 2004 (gmt 0)

10+ Year Member



Is there a way to modify the auto index page that apache automatically creates when there is no index file.

I have about 3,000 directories on my server, and basically i need to manually add index pages to all of them or just modify the apache auto index page.

jdMorgan

2:57 am on Jun 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you looked into mod_autoindex [httpd.apache.org]?

I have not played with this, since I consider providing a directory list to be a security problem (for my own sites), but it looks like you can add an html preamble to the directory listing, and that you might be able to use it to match the page appearance to your site's theme. Alternately, you can call a cgi script to generate both the page theme and the directory listing, if you prefer.

Both approaches would let you 'share' the directory theme among all of your directories, without requiring an index page in every directory.

Jim

PFOnline

3:08 am on Jun 1, 2004 (gmt 0)

10+ Year Member



Thanks jim, I'll give it a read... :) Sounds like what I'm lookin for...