LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Capistrano Maintenance Page Not Being Displayed

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-06-2006, 12:18 PM
delynn delynn is offline
New Member
 
Join Date: Aug 2006
Posts: 9
Default Capistrano Maintenance Page Not Being Displayed

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:
Code:
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
Here is the logging info for a request to the Virtual Host:
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!
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
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting a 'server maintenance' page for all virtual hosts subBlue Install/Configuration 2 07-01-2007 06:06 PM
Add user/passwd for access to a page reshu1596 Install/Configuration 7 02-14-2007 12:01 PM
about 404 page wpl12 Install/Configuration 1 11-16-2006 07:15 PM
Capistrano Deployment jp_n9 Ruby/Rails 3 10-24-2006 06:45 AM
413 Customized Error Page not working athanasius Install/Configuration 1 02-23-2006 01:17 PM


All times are GMT -7. The time now is 01:02 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.