LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-08-2004, 09:04 AM   #1
bentman78
Member
 
Registered: Mar 2003
Location: Washington DC, USA
Distribution: Redhat
Posts: 212

Rep: Reputation: 30
Disable Directory Browsing Apache


I have Apache 1.3.29 installed and I want to disable directory browsing. Basically if there is no page in the directory i want the user redirected to the default apache page. Where is the option for this?
 
Old 07-08-2004, 05:26 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I don't know if it's really the "proper" way to do it but you could try setting -Indexes as a directory option to make directory listing illegal and then use an ErrorDocument redirect for code 403 (forbidden) to redirect the client to the homepage.


Håkan
 
Old 07-09-2004, 02:10 AM   #3
Cohobin
Member
 
Registered: Feb 2003
Posts: 51

Rep: Reputation: 15
in httpd.conf, remove Indexes from the Options line

if you are running the userdir mod, set UserDir to disabled.

set the redirection as specified above and restart apache. should be good to go. Just posting this off the top of my head, so the names may be slighty different; oh well.
 
  


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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
xmms directory browsing doralsoral Linux - Software 1 10-24-2005 07:51 PM
Apache: show mp3 id tags in directory browsing? wijnands Linux - Software 1 08-09-2005 07:09 AM
gnome directory browsing surgey Linux - Newbie 2 05-10-2005 07:12 PM
X stalls when browsing directory djcomplex Linux - Software 0 01-15-2004 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

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