Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-25-2003, 10:24 PM   PM User | #1
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
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
x_goose_x is offline   Reply With Quote
Old 02-25-2003, 10:51 PM   PM User | #2
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
You can do it with a php script:

http://dev.monokromatik.com/indexer/
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 02-26-2003, 04:03 AM   PM User | #3
x_goose_x
Regular Coder

 
Join Date: Jun 2002
Location: Montreal, Canada
Posts: 644
Thanks: 0
Thanked 0 Times in 0 Posts
x_goose_x is an unknown quantity at this point
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.
x_goose_x is offline   Reply With Quote
Old 12-10-2010, 08:23 PM   PM User | #4
r00t
New to the CF scene

 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
r00t is an unknown quantity at this point
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...directoryindex
r00t is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:56 PM.


Advertisement
Log in to turn off these ads.