Jump to content


This topic is now archived and is closed to further replies.


User dir public html does not work. Permission denied

Recommended Posts

Hello All,
I have just installed Red Hat ES4 with RH's distribution of apache. Default install and enabled the userdir and the public_html dir. The following is my configuration for httpd.conf:

<IfModule mod_userdir.c>
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#UserDir enable all

# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
UserDir public_html

# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec ExecCGI

Why am I getting Permission denied (403 error) when trying to go to http://domain/~user/index.html

Any help?


Share this post

Link to post
Share on other sites
The <Directory /home/*/public_html>  bit is wrong it should be either DirectoryIndex header.html or DirectoryIndex index.html

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.