The problem is with permissions of /home/user/public_html. This directory should be readable by the user under which apache runs. By default it's wwwrun on SuSE. Also by default, /home/user has permissions 700, i.e. user wwwrun has no read access to /home/user and the rest stuff below it. The quick way to test it is: su root su wwwrun ls /home/user/public_html I bet you'll get permission denied. To fix the problem you may either allow others access to your home directory (chmod 705 /home/user) or change the group owner for /home/user to nogroup and allow group access to /home/user (chmod 750 /home/user). Both ways are insecure, so choose your poison... -Kastus On Fri, Mar 16, 2001 at 02:28:05PM -0500, Steven T. Hatton wrote:
This *should* be an easy question, but the answer is not jumping out at me. How do I set up my Apache server so that it shares out the ~username/public_html directories which are indicated in the default /etc/httpd/httpd.conf as follows:
# # UserDir: The name of the directory which is appended onto a user's home # directory if a ~user request is received. # <IfModule mod_userdir.c> 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 FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS PROPFIND> Order deny,allow Deny from all </LimitExcept> </Directory> ?
I removed the comments form the tagged region in the second block above but I still get a 403. I'm sure I could find *a* way to make this work, but I'm wondering what the intent of the designer was. Does anybody know how this is *supposed* to work?
TIA,
Steve
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq