Saturday, 25 August 2007

Apache 2 mod_proxy - 403 error

I've been trying to put Apache2 in front of my Grails Jetty instance so that I can have common resources served by httpd and not included in my Grails web application. I enabled the proxy module, but always got 403 forbidden errors.

Searching around the web turned up this post, which lead me to check which modules were loaded.

Where I had simply done:
a2enmod proxy

I really need to also do:
a2enmod proxy_http
a2enmod proxy_connect

Of course, after enabling these modules, remember to force a reload:
/etc/init.d/apache2 force-reload