You are not logged in.
Pages: 1
I've been expanding my server to offer hosting space to friends and family, i've decided to make use of apache's userdir feature, my settings are shown below.
they are pretty close to the default settings, however whenever i attempt to acess files via the ~user request i get:
Forbidden
You don't have permission to access /~user on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I know perfectly well that the files i'm trying to access are there. Also I have
chmod -R 701
for the directories in question
UserDir html
UserDir disabled
UserDir enabled user1 user2 ...
<Directory /home/*/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>
[/i]
Hey what are you guys trying to pull, issue 0x0f is the same as 0x16"
Offline
Also I have
chmod -R 701
for the directories in question
For the whole tree ? I.e. starting from / ? Of course, don't do chmod -R 701 / :-) but only selectively.
Also, check the log files. Especially httpd-error.log (I think it is in /var/log in AL by default).
Offline
You might want to add a slash at the end of the URL, otherwise Apache might not recognize the directory you are referring to as one, and looks for a file with that name instead.
"That's the problem with good advice. Nobody wants to hear it."
-- Dogbert
Offline
no i've only used chmod -R 701 on the html folders for each user
and in response to gyroplast adding the slash has no effect
Hey what are you guys trying to pull, issue 0x0f is the same as 0x16"
Offline
Are the user directories accessible by the user/group Apache is running as? wwwrun, IIRC?
If not, try setting a userdir to 755 for a change. If it works then, you obviously have a permission problem and should chgrp the userdir to the group Apache is using, and use 0751 or 0750 (whatever makes more sense in your case) instead as the permission settings, thus actually allowing the server process to read and traverse this directory.
"That's the problem with good advice. Nobody wants to hear it."
-- Dogbert
Offline
# ps aux | grep httpd
root 383 0.0 3.9 11652 5032 ? S Dec10 0:12 httpd -k start
nobody 3324 0.0 3.5 11728 4420 ? S 12:47 0:00 httpd -k start
nobody 3325 0.0 3.4 11728 4412 ? S 12:47 0:00 httpd -k start
nobody 3326 0.0 3.4 11728 4412 ? S 12:47 0:00 httpd -k start
nobody 3327 0.0 3.5 11728 4444 ? S 12:47 0:00 httpd -k start
nobody 3328 0.0 3.5 11728 4448 ? S 12:47 0:00 httpd -k start
nobody 3329 0.0 3.4 11728 4408 ? S 12:47 0:00 httpd -k start
nobody 3330 0.0 3.4 11728 4408 ? S 12:47 0:00 httpd -k start
nobody 3331 0.0 3.4 11728 4408 ? S 12:47 0:00 httpd -k start
nobody 3332 0.0 3.6 11752 4580 ? S 12:47 0:00 httpd -k start
nobody 3333 0.0 3.5 11728 4420 ? S 12:47 0:00 httpd -k start
i'm assuming thats what u mean, so if its running as nobody i don't see what the problem could be
Hey what are you guys trying to pull, issue 0x0f is the same as 0x16"
Offline
upon extensive googling i've gotten it to work
apache also takes into account the user's home directory's permisions, by giving execute permission to these the problem has been abated for now
Hey what are you guys trying to pull, issue 0x0f is the same as 0x16"
Offline
That's what I wanted to tell you - I guess I was not clear enough ... oh well ....
Offline
Pages: 1