...

View Full Version : How to make a custom directory listing in apache.



x_goose_x
02-25-2003, 10:24 PM
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

Spookster
02-25-2003, 10:51 PM
You can do it with a php script:

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

x_goose_x
02-26-2003, 04:03 AM
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.

r00t
12-10-2010, 08:23 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum