logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Hide Directory Listing Help
Author
mcbmail



Joined: 20 Feb 2007
Posts: 2

PostPosted: Tue 20 Feb '07 22:55    Post subject: Hide Directory Listing Help Reply with quote

I am very new to manually configuring the Apache Webserver. I currently have a setup used to serve a SMF 1.2.2 forum. I originally had the problem of when i typed in my url it showed the listing of files in that root directory. I found the setting to point to index.php instead of index.html.

However if i have to reference other directories to serve content, how do i hide the file listing?

Right now if someone was to follow up the link http://forum.hosteng.com/wn/ it shows the index for that directory.

Also if you can suggest any other resources for administering and securing Apache on a Windows server that would be greatly appreciated.

Thanks,

Matt
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Wed 21 Feb '07 2:30    Post subject: Reply with quote

The Options directive in your httpd.conf file controls whether directory listings are produced - specifically, the Indexes argument to Options.

The default value for Options in the <Directory> section of httpd.conf which controls your web root is:
Quote:
Options Indexes FollowSymLinks


If you remove the Indexes argument from this line, directory listings will be disabled in your web root and all its subdirectories.

See the Apache documentation for Options for more detailed info.

-tom-
Back to top
mcbmail



Joined: 20 Feb 2007
Posts: 2

PostPosted: Fri 23 Feb '07 22:40    Post subject: Reply with quote

Thank you for the help. That worked great. Starting to get the hang of the syntax. And that docs page will help out a lot.

Cheers,

matt
Back to top


Reply to topic   Topic: Hide Directory Listing Help View previous topic :: View next topic
Post new topic   Forum Index -> Apache