Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache 403 forbidden issue w/ userdir
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
drkstorm
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2004
Posts: 118

PostPosted: Mon Oct 29, 2007 4:29 pm    Post subject: apache 403 forbidden issue w/ userdir Reply with quote

I'm sure this is simple, but i cant see it, I want userdir access on my apache2 server but i keep getting:

/var/log/apache2/error_log:
Code:
client denied by server configuration: /home/users/kyle/public_html/index.html


/etc/config.d/apache2:
Code:
APACHE2_OPTS="-D USERDIR -D DEFAULT_VHOST -D INFO -D LANGUAGE -D SUEXEC -D PHP5"


all dirs and index.html have chmod 755 permissions: /home, /home/users, /home/users/kyle, /home/users/kyle/public_html and I haven't changed anything in the /etc/apache2/modules.d/00_mod_userdir.conf

my root webpage works fine, located in /var/www/localhost/htdocs/
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Mon Oct 29, 2007 8:27 pm    Post subject: Reply with quote

You have a slightly nonstandard directory configuration there... Your home dir is looking at /home/users/kyle

00_mod_userdir.conf in /etc/apache2/modules.d says:
Code:
<Directory /home/*/public_html>
        AllowOverride FileInfo AuthConfig Limit Indexes
        Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        <Limit GET POST OPTIONS>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS>
                Order deny,allow
                Deny from all
        </LimitExcept>
</Directory>

You might want to try changing that to:
Code:
<Directory /home/users/*/public_html>
...
</Directory>

I'm not 100% convinced that that'll help, as I don't know if * matches just one entry or multiple, in a Directory declaration like that... But the error you have definitely looks like there's no <Directory> segment allowing access to that part of the filesystem..
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
drkstorm
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2004
Posts: 118

PostPosted: Mon Oct 29, 2007 10:21 pm    Post subject: Reply with quote

that was it ... thanks!
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