TUCoPS :: Web :: Apache :: bt1349.txt

Root Directory Listing on RH default apache

Hello everybody

[root@localhost root]# cat /etc/redhat-release 
Red Hat Linux release 9 (Shrike)

# Install apache from cd or the latest one rpm
[root@localhost root]# rpm -Uvh /tmp/httpd-2.0.40-21.5.i386.rpm

>From /etc/httpd/conf/httpd.conf
# 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

It's true if you made a request like

GET / HTTP/1.0

Not true if you type:

GET // HTTP/1.0

If you have a simple index.html like


you aren't able to see the directory listing.
Well... a little problem but out there there are
lot of people that install default RH apache and
create "secret" (not linked) directory... :)
Well that's all, bye


-(/tmp/think_about_this:#)-> perl -e 'print 154.998 - 154,"\n"'
-(/tmp/think_about_this:#)-> perl -e 'print 154.997 - 154,"\n"'

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH