poniedziałek, 7 kwietnia 2008

client denied by server configuration

Today I got sth like this after configuring a vhost, it was stragne, because I didn't noticed anything like that before (I have about 10 vhosts more, and the problem was only with this one).

[Mon Apr 07 14:53:42 2008] [error] [client] client denied by server configuration: /home/users/dumie/file.txt

The information from browser was "access denied". First I was thinking about privilages, but even chmod 777 to whole path didn't work. The only difference was that this vhost pointed to homedir not to special directory made for www users.

After checking documentation the solution was adding a
<directory /home/users/dumie>
allow from all

into the <VirtualHost> </VirtualHost> section

11 komentarze:

Anonymous pisze...

Glenn pisze...

you saved me some grief by posting this. thanks!

Jon pisze...

You rule!

Trojaneyez pisze...

Thank you for that, I knew it was something with the tag's, but I wasn't 100% sure of what aspect I needed to add... Thanks a ton.

matt pisze...

Thanks a ton for posting this. I was pulling out my hair. Ugh.

Thanks again.

Anonymous pisze...

thanks, help me out! :)

SkiBob pisze...

saved my bacon

Pabs pisze...

thanks a million for the info...been looking for a fx and foudn it here!

John Moore pisze...

Thank, you tip was just what I needed..


bill pisze...

What's the impact of removing the deny in terms of security?

marti pisze...

allow from all - means that everybody will have access to this resource, it can be bypassed by adding 'deny from', but order like in iptables is important.
In my opinion in case of public webserver is OK, and it refer only to this current vhost.