22, November 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 694 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8250
42487 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
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
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?
Nov 22, 2008, 06:03:20 PM





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: 37.740
Total Topics: 7.651
Total Members: 4.397
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Janai

40 Guests, 5 Users online :

9 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.