Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Howto allow index of FC4 root 1

Status
Not open for further replies.

rouse01

IS-IT--Management
Sep 10, 2001
143
US
Can someone explain howto get rid of the FEDORA CORE TEST PAGE to allow documentroot directory index on the FC4 distro? I've defeated the 'auth_mysql.conf' and use the old 'Authuserfile' etc in my httpd.conf- which worked fine on my recently updraded rh9 distro - and still works fine on the subfolders. But I'd rather logon to this server and be able to drill down to whatever folder. (I do like fc4 btw).

Thanks - Keith
 
What you are asking is very dangerous. But to do it, you will need to set the directory and file permissions so that apache can access it. Then you need to change the DocumentRoot in httpd.conf. Let me say this again. There is no reason for anybody in their right mind to do this.

 
DocumentRoot "/var/
I'd already changed group ownership of documentroot to my group and permissions to 0775. The snippet of httpd.conf below did not bring desired result. I even temporarily renamed the noindex.html and the server returned a file not found error.
#
# 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>

Any other ideas?
 
Remove "Options -Indexes", which says "don't provide a list of documens in this directory". Or, just comment out the entire LocationMatch block.
 
Thanks lgarner, you gave me an idea. I changed the -Indexes to +Indexes and got the result I was looking for.
 
Sorry rouse01. I misread what you were asking. I thought you wanted apache to be able to use the system root "/" as the DocumentRoot. After rereading your question, I don't know how I got that. Sorry again for being so offensive. Turns out, I'm the one not in my right mind. ;-)



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top