LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-08-2004, 10:12 AM   #1
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Rep: Reputation: 30
how do i prevent the directory/file links from showing in the absence of index.*?


hi,

in apache, how can i prevent the directory contents from showing on the url in the absence of an index.* file on that folder as well as its subfolders?
 
Old 10-08-2004, 10:21 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Open httpd.cond and under the line where your DocumentRoot is defined:
Code:
<Directory "/path/to/DocumentRoot">
find the one that starts with "Options", something like:
Options Indexes FollowSymLinks ..
Remove Indexes restart apache and you're done
 
Old 10-08-2004, 11:52 AM   #3
spyghost
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 245

Original Poster
Rep: Reputation: 30
so there won't be any need for the .htaccess file?
 
  


Reply


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 index of web folder Swakoo Linux - Newbie 3 06-17-2005 05:28 AM
apache is only showing one file in the directory niverson Linux - Software 6 02-27-2005 06:39 PM
Apache directory index layout lupus9537 Linux - Software 1 04-26-2004 04:23 PM
Prevent updating shared library links melinda_sayang Slackware 1 02-26-2004 01:20 PM
apache directory index spank Linux - Newbie 1 12-10-2003 12:47 PM


All times are GMT -5. The time now is 01:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration