Client denied by server configuration error in Apache.

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><br />  ProxyRequests Off<br />  <Proxy *><br />    Order deny,allow<br />    Deny from all<br />    Allow from localhost<br />  </Proxy><br />  ProxyVia On<br /></IfModule>

Comments

Popular Posts