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>
Comments
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, this helped me too.
Thanks, this helped me too.