Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-02-2004, 12:06 AM   #1
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, 01:51 AM   #2
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

Old 06-02-2004, 02:50 AM   #3
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

This finally worked!!
Thanks again!


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 06:03 AM
apache directory listing doralsoral Linux - Software 2 06-15-2005 07:37 AM
apache - directory listing thejackal13 Linux - Software 1 01-05-2005 10:31 AM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 06:29 PM
how to prevent directory listing in apache ? chuck77 Linux - General 7 12-21-2001 03:27 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:12 AM.

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