Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache mod_userdir 403 (.htaccess)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
appleshampoo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 116

PostPosted: Tue Jan 10, 2006 4:07 am    Post subject: Apache mod_userdir 403 (.htaccess) Reply with quote

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
View user's profile Send private message
jcampbell
n00b
n00b


Joined: 24 Sep 2005
Posts: 40

PostPosted: Tue Jan 10, 2006 4:26 am    Post subject: Reply with quote

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
View user's profile Send private message
appleshampoo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2004
Posts: 116

PostPosted: Tue Jan 10, 2006 8:14 am    Post subject: Reply with quote

Yeah I got rid of the .htaccess problem changing the line to
Code:

AllowOverride None

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum