LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


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

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


Hello

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

gd
 
Old 12-17-2006, 11:03 AM   #2
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
Hello,

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
</Directory>
 
  


Reply



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 02:48 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 06:05 AM
how do I poassword protect a directory on a website, Apache bentman78 Linux - Software 8 06-17-2004 11:12 AM
directory structure alaios Linux From Scratch 4 04-20-2004 06:16 PM
directory structure sluggo Linux - Newbie 1 01-20-2002 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:53 AM.

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