I'm having trouble getting LiteSpeed to properly display the maintenance page that Capistrano creates while performing an update. The 404.html page that is found in my RAILS_ROOT/public directory is always served unless I specifically make a request for /system/maintenance.html.
Here is what I have for Rewrite Rules for my Virtual Host:
Here is the logging info for a request to the Virtual Host:
As you can see, things appear to be working correctly, but the maintenance.html page is still not displayed. I have verified that the Allow Override HTAccess option on my Virtual Host's General tab is set to "N/A". I have also commented out all the lines in the .htaccess file that exists in RAILS_ROOT/public thinking that might still be getting in the way.
Does anyone have any ideas what might be going on here? Thanks in advance!
--
DeLynn Berry
delynn@gmail.com
http://delynnberry.com
Here is what I have for Rewrite Rules for my Virtual Host:
Code:
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
Code:
[REWRITE] Rule: Match '/' with pattern '^.*$', result: 1
[REWRITE] Cond: test '/var/www/rails_project/releases/20060806174920/public/system/maintenance.html' with pattern '-f', result: 0
[REWRITE] Cond: Match '/var/www/rails_project/releases/20060806174920/public/' with pattern 'maintenance.html', result: -1
[REWRITE] Source URI: '/' => Result URI: '/system/maintenance.html'
[REWRITE] Last Rule, stop!
Does anyone have any ideas what might be going on here? Thanks in advance!
--
DeLynn Berry
delynn@gmail.com
http://delynnberry.com