Client denied by server configuration error in Apache.
- Language:
Just in case if somebody else has a similar problem and can't get the Apache server working as expected.
I have tried to setup proxy_mod under apache to forward HTTP traffic from AJAX Jabber client to the Bosh component running on Tigase server. It was working fine for a long time on my Gentoo server. I have recently wanted to run more tests on a separate machine and had this problem. It was a system based on the Debian distribution and the proxy_mod didn't want to work at all displaying the error message in a log file:
[error] [client ::1] client denied by server configuration: proxy:http://127.0.0.1:5280/xmpp/ , referer: http://localhost/F5A379CEC35AEBCC5FFA11BA8A33CD02.cache.html
All you need to do is to modify proxy.conf file for your Apache2 installation and setup proper permissions. By default the proxy is disabled for all. In my case I had to enable it just for a localhost.
Example configuration from my vim mods-enabled/proxy.conf file:
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from localhost
</Proxy>
ProxyVia On
</IfModule>
- artur's blog
- Add new comment
- 120129 reads
Comments
Phew! Thanks a lot!
Phew! Thanks a lot!
While I was doing some urgent
While I was doing some urgent work, I stumbled with this problem. Believe it or not this is the most time consuming of my time when I did not have time to waste. Thank you for sharing.
Thanks!
Thanks!
Hi, thank you very much!!! I
Hi, thank you very much!!!
I spent almost 3 hours trying to make something similar, and this blog entry gives me the clue!!
Many thanks from Uruguay!
I had still trouble getting
I had still trouble getting this to work.
After i disabled the "deny from all" line the thing worked.
Tried this 2 times to be sure.... if the deny from all is enabled it does not work for me !!
Thanks for the article.
Peter
I have the same problem. Does
I have the same problem. Does commenting out Deny from all pose a security risk though?
Thanks,
IKW
Just wanted to give you
Just wanted to give you another thanks -- this helped me as well
The proxy.conf worked for
thanks too! after 4 days,
thanks too!
after 4 days, I'm new to Apache..., and I wanted to proxy forward to my virtual machines apache dedicated to special tasks
Thanks a lot
Thanks a lot
Thanks... this help me a
Thanks... this help me a lot!
Thanks a bunch :)
Thanks a bunch :)
Thanks alott, that solved
Thanks alott, that solved the problem with Safari Mac OS X 10.5 on localhost. My workarond was to comment # ::1 localhost and # fe80::1%lo0 localhost in /etc/hosts, but now Safari sends 127.0.0.1 as ServerName instead of the crumbled IP ::1, which is kind of fatal when you check for valid IP-Adresses.
Thanks!
Thanks!
Thanks, this helped me too.
Thanks, this helped me too.
Helpful thx a lot! :)
Helpful thx a lot! :)