When I decided to try the switch from fcgid to mod_proxy + mongrel for this blog (and now the majority of my projects at work), I discovered there was no example of such configuration or at least not all in one place.
This post will try to fill this lack of a complete example. The distro i’m using here is Debian, but the configuration should be easily ported to yours.
Thereafter I assume you already have a working configuration with :- Apache 2.0.x - mod_proxy_http (thanks AMicky) - mod_proxy - mod_rewrite
mod_proxy configuration :
There’s not so much to change here, just allow proxying to anyone for local domains.
<Proxy *> Order deny,allow # next line was Deny from all Allow from all </Proxy>
A sample vhost file
This configuration is intended to be used with a RubyOnRails application served by Mongrel and deployed with Capistrano.
So you should notice some nice things, like auto-disabling website with a personalized message when there’s a maintenance.html page found, serving static contents directly by apache (no uneeded hit on mongrel) and conserving access to cgi-bin directory (see my previous post about awstats).
Wed, 26 Jul 2006 23:28 Posted in Others / Divers