Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    You can do it with a php script:

    http://dev.monokromatik.com/indexer/
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •