[Mongrel] mongrel cluster w/ apache

Michael Bannister mikebannister at gmail.com
Sun Jun 3 14:16:32 EDT 2007

hi all,

i'm working on deploying my app w/ apache and a mongrel cluster. i've
started by copying the instructions and code from the agile rails book
and everything seems to be working fine but apache isn't forwarding my
requests to mongrel the way i expect it should. there's nothing in the
rewrite logs and nothing but 404 errors in the apache error logs.

...loads up my app in mongrel so all is fine there. i'm thinking
apache should have no problem when i browse to:


i get 404 errors...

is there some special incantation necessary to make this work?

the relevant parts of my apache config follow:

<Proxy balancer://mongrel_cluster>
<VirtualHost *:555>
  ServerName thealarmlights.net
  DocumentRoot /usr/local/www/weposs/current/public
  <Directory "/usr/local/www/weposs/current/public" >
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  RewriteEngine On
  RewriteLog logs/weposs_rewrite_log
  RewriteLogLevel 9
  # Check for  maintenance file and redirect all requests
  RewriteCond  %{DOCUMENT_ROOT}/system/maintenance.html -f
  RewriteCond  %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule  ^.*$ /system/maintenance.html [L]
  # Rewrite index to check for static
  RewriteRule ^/$ /index.html [QSA]
  # Rewrite to check for Rails cached page
  RewriteRule ^([^.]+)$ $1.html [QSA]
  # Redirect all non-static requests to cluster
  RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]

if anyone can help me sort this i'd appreciate it so much. i worked so
hard to get this far (and learned a lot) but i'm stuck pretty bad at
this point.


-mike bannister

More information about the Mongrel-users mailing list