Forum Moderators: phranque

Message Too Old, No Replies

Custom mod autoindex.so /CSS link in head element/directory listing?

         

JAB Creations

6:16 pm on Feb 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My host recently updated the server from Apache 1.3x to 2.x. I am wondering if Apache has an .htaccess way of inserting a link element within the head of directory listing pages to a CSS file. I am aware that Apache uses a header [httpd.apache.org] and footer [httpd.apache.org]...

HeaderName /apache-header.html
ReadmeName /apache-footer.html

...however these do not effect the anything except the body. Is there any way for me to use my own mod_autoindex.so file or somehow at least add a link element within the head element?

- John

jdMorgan

9:24 pm on Feb 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure what the direct answer is, but if you want fully-customized directory index pages, you can always put an index-generation script (e.g. PERL or PHP) in the directory and specify it as the DirectoryIndex file. In order to avoid having to put a copy in every directory to be indexed, you can internally rewrite those index file URLs to a common index script file.

This is a common way to get a fully-skinned directory index listing.

Jim