Linux-Noob Forums

Full Version: UserDir - kept getting 403 Forbidden
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

hello,

 

My apache works fine for /var/www/html. so i want to make UserDir, /home/*/public_html

 

userdir mod.

 



Code:
<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 "enabled *"    UserDir "disabled root"    #    # To enable requests to /~user/ to serve the user's public_html    # directory, use this directive instead of "UserDir disable":    #    UserDir public_html </IfModule>




 

Directory

 



Code:
<Directory "/home/*/public_html">        Options Indexes Includes FollowSymLinks                AllowOverride None        Allow from all        Order deny,allow </Directory> <Directory "/home/*/public_html/cgi-bin">        Options ExecCGI        SetHandler cgi-script </Directory>




 

public_html's chmod are: 775

 

it still Forbidden 403. is there is anything i must've missed out? or it need to change something?

 

it would be appreciate if you could help me out.


chmod 711 /home/user

 

by default RH has the home dir's chmod to 700 and the apache user needs at least --x access to get into and dirs about the public_html dir


ahh of course, i'm idiot! lol. i chmod the public_html as 755. but it had to chmod on home dir...

 

thanks mate! :)