Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Any Apache heads out there?

Options
  • 20-03-2006 11:19am
    #1
    Closed Accounts Posts: 25


    Hi there

    Time is of the essence here, hence the post. Can anyone tell me what is the most secure way of modifying your httpd.conf so that a website can still be accessed, but that the folders cannot be browsed using the browser?

    thanks in advance.


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    To do it across the board on the server, comment out the mod_autoindex module at the top of the configuration.

    #LoadModule autoindex_module modules/mod_autoindex.so

    To do it for a particular VirtualHost when Indexing is the default, add -Indexes to an existing Options directive, or add one:

    Options -Indexes

    Beter yet, disable it for the default view, and only enable it when you specifically need it.

    adam


  • Closed Accounts Posts: 25 reptonite


    thanks Adam

    #LoadModule autoindex_module modules/mod_autoindex.so

    is already commented out in favour of

    LoadModule autoindex_color_module modules/mod_autoindex_color.so

    which if commented out means apache won't start.

    Cheers

    Mark


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Never heard of it, but if it's a direct replacement simply follow the instructions for one of the other two suggestions.


Advertisement