Helpful Information
 
 
Category: Apache configuration
How to make a custom directory listing in apache.

running: Apache 1.3.26

Right now, I've managed to get a custom directory listing by disabling directory listing and set up my 403 document to get the listing of the directory of the referring page (a real ghetto way, i know). My question is, how can I do this properly? From what I understand of "FancyIndexing", you can just add a header and change icons and such, but I want my listing to have much more on it (much more html, maybe another PHP script, who knows, I want room for expansion). Does anyone know how to do this? Thanks.

-x_goose_x

You can do it with a php script:

http://dev.monokromatik.com/indexer/

I already have a php file that can list a directory, but the problem is, I don't want to have to copy it to every directory.

just for reference and google:

the trick is simple, just a little non-intuitive:
the DirectoryIndex directive will happily accept an _absolute_ path,
so just specify the path to your index generating script as last alternative,
and it will be run for any directory that does not have any other index file present.

http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex










privacy (GDPR)