On Thursday 16 September 2004 22:48, Danny Sauer wrote:
Andreas wrote regarding 'Re: [SLE] 403 forbidden access with apache2' on Thu, Sep 16 at 14:19:
El Jue 16 Sep 2004 13:59, Ken Schneider escribió:
So, wouldn't that mean that apache2 expects the public_html directory to be located in a user home directory which itself must be a subdirectory of /home?
No, the user home directory is dictated by the entry in /etc/passwd, it can reside any where on the system.
Well, I didn't mean to say that the OS couldn't handle home directories being located anywhere, just the mod_userdir.c configuration of apache2 (mine is the SuSE standard install) seems to expect them to be under /home to be able to access the public_html dirs in http://server/~user
Or wouldn't the <Directory> directive of mod_userdir.c suggest that? Please correct me if I am wrong.
You're right. To allow access, you probably want to either add another <Directory> entry allowing access to /home/*/*/public_html, or use a regular expression like . The DirectoryMatch will be slower and a little less secure, but the security implications are minimal and it reduces the chance for error by putting the homedir config stuff in one place (rather than duplicating as in the first solution).
Access to stuff under /home is denied by default, then explicitly allowed just for public_html. Just to explain a little further.
The