Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Any Apache heads out there?

  • 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