I use apache asis for a maintenance page. It's a bit of a sledgehammer, since I 
use it to redirect all traffic for all apps thru apache to the maintenance 
page, but it works for me. In the site.conf I have

#Bind mod_asis to files ending in .asis
AddHandler send-as-is asis
#Add Aliases/AliasMatches for other resources needed for site down page
Alias /graphic.gif /usr/local/apache2/htdocs/maintenance/graphic.gif
#Send all other urls to the site maintenance page
AliasMatch /(.*) /usr/local/apache2/htdocs/maintenance/index.html.asis

Then the asis file looks like

Status: 503
Cache-Control: no-cache
Retry-After: 3600
Content-Type: text/html

<!DOCTYPE HTML>
<html>
…
</html>

site.conf is just a soft link to siteup.conf or sitedown.conf. I switch it on 
and off using a script triggered by a hudson job since I will likely forget 
where everything goes between maintenance periods :-)

Ramsey

On Nov 7, 2012, at 12:37 AM, Paul Hoadley wrote:

> Hello,
> 
> I'm looking to implement a simple "downtime" page for an application—if all 
> instances are off, the user should see this page.  For a moment, I thought 
> the "Redirection URL" in the application's settings would handle this for me, 
> but it doesn't seem to.  The semantics there seem to be quite specific, with 
> "an instance fails to respond to a direct request" entailing that there 
> exists an instance at all.  Certainly, testing shows that "No instance 
> available" is returned instead of the redirection URL in the case where there 
> are zero instances running.
> 
> So how do people handle this?  Looks like I would need to manually create an 
> Apache redirect/rewrite and bounce Apache, which seems labour intensive.
> 
> 
> -- 
> Paul Hoadley
> http://logicsquad.net/
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to