#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    13
    Rep Power
    0
    Can anyone tell how to configure Apache to allow directory browsing instead of returning the defualt home apge

    Thanks Paul
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    9
    Rep Power
    0
    I am assuming you see the default page.(thus apache is running, Netscape is finding the page ok)
    in your httpd.conf file:
    Where is the DocumentRoot pointing to?
    (hold that answer)

    go to (do not make) a section
    <Directory "(insert DocumentRoot here)">
    #in that section should be
    Options Indexes
    #(at least, there can be more but who cares)


    Restart the httpd process
    get thee to a command prompt and "cd" to the DocumentRoot, Please don't tell me you forgot it already.
    type at a command prompt (without the double quotes): "mv Index.html index.jl"

    Open Netscape and look at http://localhost/
    TADA.
    Jeremy
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2009
    Posts
    11
    Rep Power
    0
    Or to quickly view the directory, simply rename the index page from index.(html? etc) to something else. e.g. (homepage.(html etc)
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2009
    Posts
    34
    Rep Power
    6
    Note that if you use this format:


    Code:
    <Directory /path/to/some/deep/directory>
    Options Indexes
    </Directory>
    It will reset all other Options set above that directory, such as the Include option.

    If you want to add Index listing, then use:

    Code:
    <Directory /path/to/some/deep/directory>
    Options +Indexes
    </Directory>
    This will Add the listing Option to the other Options that may already be set.

    Similarly you can remove options using a "-" sign.

    http://httpd.apache.org/docs/1.3/mod/core.html#options

IMN logo majestic logo threadwatch logo seochat tools logo