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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache directory problem..

Status
Not open for further replies.

madmed

MIS
Jan 7, 2006
1
US
Hi everyone, ill make it brief, this is all on CentOS4 BTW. Basically I have a user account that can currently ftp in and is jailed to their home directory, in that directtory they have their public_html directory. I have a site that is a vhost in apache. The content directory points to another directory than the home directory of the user in question. I want to setup the vhost to point to the users public_html directory for content. I changed the path in httpd.conf to the correct directoy and I get an "access denied" error when I try to browse to the page. All the perms and group memberships are correct. What else can I be missing?
 
If you're sure that the permissions are correct (the apache user needs read permission), then it could be because there's no index.html file in the directory. It's not uncommon for the base apache setup to exclude directory listing (indexes). Which means that if there is no default file (like index.html), then you must be trying get the directory listing - which is denied. If there isn't one, try putting an index.html file in that directory.
 
If you are using the UserDir method, you will need to enable it because it is set to disable by default for security reasons. If this is the method you are using, can you post the directory container to let us see what may be wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top