LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-02-2004, 01:06 AM   #1
aroop
Member
 
Registered: May 2004
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 50

Rep: Reputation: 15
Directory Listing with apache


I am using apache version 2.0.40 on my Red Hat Linux 9. I want to display a directory listing on the browser, but it says "Access forbidden"
The directory has permissions of 755.
Can someone help me with this?
 
Old 06-02-2004, 02:51 AM   #2
SBing
Member
 
Registered: Mar 2004
Posts: 519

Rep: Reputation: 35
In httpd.conf (or .htaccess if it is enabled) for indexes to be displayed, you need the line

Options Indexes

Search your httpd.conf for Options -Indexes since this will be disabling viewing of directory listing.

Good luck

Steve
 
Old 06-02-2004, 03:50 AM   #3
aroop
Member
 
Registered: May 2004
Location: Kolkata, India
Distribution: Red Hat 9
Posts: 50

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks for the idea. The options had Indexes set, but I wanted to browse one of the home directories. For this I had to add another Directory directive adding the following line

<Directory /home/*/public_html>
Options Indexes
</Directory>

This finally worked!!
Thanks again!
 
  


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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
apache directory listing doralsoral Linux - Software 2 06-15-2005 08:37 AM
apache - directory listing thejackal13 Linux - Software 1 01-05-2005 11:31 AM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 07:29 PM
how to prevent directory listing in apache ? chuck77 Linux - General 7 12-21-2001 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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