LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-05-2004, 11:22 AM   #1
BorgKiller
Member
 
Registered: Dec 2002
Location: Cyberspace, address block 212
Distribution: FreeBSD 6.1-RELEASE
Posts: 34

Rep: Reputation: 15
Unhappy Apache 2 Root Directory Listing


Ok, this is starting to annoy me to hell and back. I am using Redhat 9 as a web server. Everythign works fine, but for some reason I cant get a directory listing on the root (/web) directory. I can get a listing for all the other directories in it but not that one.

Here is the (From what I see) relevant portion of the httpd.conf file:

Code:
DocumentRoot "/web"

<Directory />
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>


<Directory "/web/">
The ownership for the '/web' folder is apache:apache (User and Group in Apache) with permission set 777. If someone can help, it would be great. Knowing my luck it is something easy.

Thanks
 
Old 07-05-2004, 11:37 AM   #2
BorgKiller
Member
 
Registered: Dec 2002
Location: Cyberspace, address block 212
Distribution: FreeBSD 6.1-RELEASE
Posts: 34

Original Poster
Rep: Reputation: 15
Ugh, Ia m soo dumb.

I just looked back over the httpd.conf and found this section:

Code:
# 
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>
So I just got rid of the - to make it:

Code:
# 
# Disable autoindex for the root directory, and present a
# default Welcome page if no other index page is present.
#
<LocationMatch "^/$>
    Options Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>
Yay, it works. Mods, feel free to delete this if you think it is a waste of space. Thanks anyway guys.
 
  


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 On
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
Directory Listing with apache aroop Linux - Networking 2 06-02-2004 02:50 AM
apache 2 directory listing jwatco2001 Linux - Software 5 06-07-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:55 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