Forum Moderators: phranque

Message Too Old, No Replies

User dir public html does not work. Permission denied

         

thusi02

6:44 pm on Aug 25, 2006 (gmt 0)

10+ Year Member



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

</IfModule>
#
# 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
</Directory>

Why am I getting Permission denied (403 error) when trying to go to [domain...]

Any help?

Cheers,
Thusi
<snip>

[edited by: jdMorgan at 6:48 pm (utc) on Aug. 25, 2006]
[edit reason]
[1][edit reason] No URLs, sigs, please. See Terms of Service. [/edit]
[/edit][/1]

encyclo

2:21 am on Aug 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the above example you still have the
UserDir enable
line commented out. I believe that usually you have to either set it for
enable all
(if it is for every user) or you need to enable for a specific list of usernames. See:

[httpd.apache.org...]

(Also note the security tips on that page for disabling the user directory for the root account.)