9, July 2008

Disable directory browsing in Apache - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Disable directory browsing in Apache
« previous next »
Pages: [1] Print

Author Topic: Disable directory browsing in Apache  (Read 586 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7943
40607 credits
Members referred : 3



« on: Apr 10, 2006, 12:28:49 PM »

This is a small tutorial that you can use to disable directory browsing in the apache web server.

If you don't know what directory browsing is, it is a feauture, that lets the user browse the whole directory structure of your web site, when there is no index file present. In many cases that can lead to security issues, so it is better to disable it.

First of all you need to open your httpd.conf file with your favourite text editor. This file is usually located at /etc/httpd/conf/httpd.conf or /usr/local/apache/conf/httpd.conf on most linux installations. If you can't find it then you can execute something like this :

Code:
locate httpd.conf

Now to disable the directory browsing you have to remove the Options Indexes directive. To be more specific, there must be a line in your httpd.conf file that is like this :

Code:
Options All Indexes FollowSymLinks MultiViews

Replace that with this :

Code:
Options All FollowSymLinks MultiViews

Now to see the results and actual disable the directory browsing, you have to restart the server, and you are done Smiley

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : MIA - Where Nick and Tim
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2230
Tags : tutorials apache linux httpd.conf Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Disable directory browsing in Apache
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 09, 2008, 11:43:42 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.587
Total Topics: 7.355
Total Members: 3.661
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: komrad

34 Guests, 5 Users online :

18 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.