• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"


  • Subject: Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"
  • From: Ramsey Gurley <email@hidden>
  • Date: Wed, 07 Nov 2012 09:47:00 -0700

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"
      • From: Paul Hoadley <email@hidden>
References: 
 >Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings" (From: Paul Hoadley <email@hidden>)

  • Prev by Date: Re: Default WOString Behaviour
  • Next by Date: RE: Wonder 5.8.1 is out in the wild
  • Previous by thread: Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"
  • Next by thread: Re: Sanity check: "Redirection URL" in "Load Balancing and Adaptor Settings"
  • Index(es):
    • Date
    • Thread