Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-17-2006, 11:37 AM   #1
LQ Newbie
Registered: Mar 2006
Location: Calgary Canada
Distribution: debian
Posts: 11

Rep: Reputation: 0
Apache and viewing directory structure of a website


With a recent incident with my webserver and my ISP's abuse department I am curious about how you lock the webserver down so that people cannot view the directory structure of a site

I realize that putting and index page there will fix the problem but there are times when I want to link directly to a file. Other then putting the index page in the directory how else do you lock it down so that people cannot view the contents of the directory? Is there a something that can be added to the apache config file that will do this?

thanks in advance

Old 12-17-2006, 12:03 PM   #2
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15

You can disable Indexing either globally or for a directory. Having this paramter in the main httpd.conf/Virtual Host

Options -Indexes

Or you could configure it for a directory by not including the parameter Indexes which would disable it:

<Directory /var/www/html>
Options FollowSymLinks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Structure fedix Linux - Newbie 3 10-14-2005 03:48 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 07:05 AM
how do I poassword protect a directory on a website, Apache bentman78 Linux - Software 8 06-17-2004 12:12 PM
directory structure alaios Linux From Scratch 4 04-20-2004 07:16 PM
directory structure sluggo Linux - Newbie 1 01-20-2002 09:15 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration