Using Apache with Mongrel or Thin and Rails 3

When using mod_proxy to load balance between members of a mongrel or thin cluster it’s important not to pass requests through for static content.  A basic virtual site can be configured like this: <VirtualHost *:80> ServerName myapp.mydomain.com DocumentRoot /opt/myapp/public <Proxy balancer://thinservers> BalancerMember http://127.0.0.1:3000 BalancerMember http://127.0.0.1:3001 BalancerMember http://127.0.0.1:3002 </Proxy> ProxyPreserveHost On ProxyPass /images ! ProxyPass /stylesheets … Continue reading Using Apache with Mongrel or Thin and Rails 3