Confirmed! Put your maint rewrites outside of the <Directory>, and they work properly. My config is below.
There is still the issue I linked to in the passenger group - if you rewrite /alice to /bob, passenger passes /alice to Rails instead of / bob. RailsAllowModRewrite on RewriteEngine On # Check for maintenance file and redirect all requests RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L] On Apr 14, 8:50 pm, Ken Collins <[EMAIL PROTECTED]> wrote: > Apache 2.2.8, my vhost looks like this and the maintenance page works > just fine! > Maybe not include the rewrite in the Directory? > > <VirtualHost *:80> > ServerName dev.foo.com > DocumentRoot "/Library/WebServer/hosts/foo/public" > <Directory "/Library/WebServer/hosts/foo/public"> > Include conf/common/options_and_allows.conf > </Directory> > RewriteEngine On > RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f > RewriteCond %{SCRIPT_FILENAME} !maintenance.html > RewriteRule ^.*$ /system/maintenance.html [R=301,L] > ErrorLog logs/foo.log > CustomLog logs/foo.log combined > </VirtualHost> > > I also have an older version of Apache running that is using about 30 > rewrites on my mephisto blog. They are working just great too, they > are redirecting my old Drupal page locations to the new Mephisto > locations. > > - Ken > > On Apr 14, 2008, at 3:44 PM, Sam Granieri wrote: > > > > > Has anyone tried working with Mod Rails (http://www.modrails.com) > > yet? > > > I've managed to get it up and running, and it runs beautifully... > > Except for one thing: cap deploy:web:disable isnt noticed by > > mod_rails. > > > Mod Rails apparently knows how to pick up cached pages, and tells you > > to stay away from using mod_rewrite except if only necessary. I'm > > wondering if there's anyone in here who has ran into the same problem > > and possibly has come up with a solution? > > > > > > smime.p7s > 3KDownload --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---