View previous topic :: View next topic |
Author |
Message |
appleshampoo Tux's lil' helper
Joined: 26 Sep 2004 Posts: 116
|
Posted: Tue Jan 10, 2006 4:07 am Post subject: Apache mod_userdir 403 (.htaccess) |
|
|
I am setting up the user directories (/home/*/public_html) on an apache2 server and am getting a 403 forbidden error when I try to access these directories. The log file says
Code: |
[Mon Jan 09 22:33:06 2006] [crit] [client XXX.XXX.XXX.XXX] (13)Permission denied: /home/username/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
|
So I'm assumming there's some kind of default option that wants a .htaccess file in these directories...which I don't care to have at the moment. I found the following section in httpd.conf, but I don't know if it has anything to do with this or if it does what to change (I haven't had much experience tooling around with httpd.conf):
Code: |
#
# 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 Indexes
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>
|
Thanks for any help. |
|
Back to top |
|
|
jcampbell n00b
Joined: 24 Sep 2005 Posts: 40
|
Posted: Tue Jan 10, 2006 4:26 am Post subject: |
|
|
I would check the permission for /home, /home/username, and /home/username/public_html. Make sure "other" has read and execute permissions. Apache may be simply checking for the existance of an .htaccess. |
|
Back to top |
|
|
appleshampoo Tux's lil' helper
Joined: 26 Sep 2004 Posts: 116
|
Posted: Tue Jan 10, 2006 8:14 am Post subject: |
|
|
Yeah I got rid of the .htaccess problem changing the line to
so that kept it from looking for .htaccess.
After that I did also have some permission issues, but some timely chmod -R 755 * did the trick. Not the securest in the world but good enough for now. |
|
Back to top |
|
|
|