LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Apache 2 Root Directory Listing (https://www.linuxquestions.org/questions/linux-general-1/apache-2-root-directory-listing-201356/)

BorgKiller 07-05-2004 11:22 AM

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

BorgKiller 07-05-2004 11:37 AM

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.


All times are GMT -5. The time now is 07:12 PM.