[Helma-user] Another eye-opener: mod_proxy

Hannes Wallnoefer hannes at helma.at
Wed Mar 3 16:48:49 CET 2004


Fooling around with Apache reverse proxy autodetection, I found out that 
these 3 Apache directives are all I'll probably ever need to connect 
Apache and Helma via mod_proxy

| ProxyRequests Off
ProxyPass /foo http://localhost:8080/foo
ProxyPassReverse /foo http://localhost:8080/foo |

In contrast to mod_rewrite, this perfectly rewrites relative URL in 
redirects, so no need to set an absolute baseUri on Helma side (unless 
you want to). It's really so much easier than everything I've tried 
before (mod_jk, mod_jk2, mod_rewrite). Makes Apache integration a 
no-brainer. The only thing I haven't found out is how to exclude certain 
directories from being proxied, e.g. for static serving, but it could be 
done with mod_rewrite, and it's not really a bit deal to have these 
served from Jetty as well.

more on mod_proxy:
http://httpd.apache.org/docs/mod/mod_proxy.html

hannes



More information about the Helma-user mailing list