rewriterule muck up

ok, want to have my nice rails/mongrel app show a maint page when available...

trying to do something like this...

my vhost rewrite rules are...   RewriteEngine On   RewriteLog /var/log/apache2/rewrite_engine_log   RewriteLogLevel 3   RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f   RewriteCond %{SCRIPT_FILENAME} !maintenance.html   RewriteRule ^.*$ /maintenance.html [L]

my rewrite log is... - - [09/May/2007:13:55:07 --0500] [/sid#81d0960][rid#836a748/ initial] (1) pass through / - - [09/May/2007:13:58:11 --0500] [/sid#81d0960][rid#836a748/ initial] (2) init rewrite engine with requested uri / - - [09/May/2007:13:58:11 --0500] [/sid#81d0960][rid#836a748/ initial] (3) applying pattern '^.*$' to uri '/' - - [09/May/2007:13:58:11 --0500] [/sid#81d0960][rid#836a748/ initial] (1) pass through / just passes on thru everything, uggg

Any Rewrite experts out there ?

my vhost rewrite rules are... RewriteEngine On RewriteLog /var/log/apache2/rewrite_engine_log RewriteLogLevel 3 RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /maintenance.html [L]

You have a typo... or at least don't have the same code he has... his file is in the /system directory... Here's the configs I've used in the past that have worked for me when public/system/maintenance.html exists...

   # Check for maintenance file and redirect all requests    # ( this is for use with Capistrano's disable_web task )    RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f    RewriteCond %{SCRIPT_FILENAME} !maintenance.html    RewriteRule ^.*$ /system/maintenance.html [L]


Yeah, I have mine in public/maintenance.html, I did try moving it to system under he superstition that maybe that mattered, but it did not. The really confusing thing is that the rewrite log says "comparing to /^.*$/ (ie everything), and then passing thru, come on, it's gotta match !