Do you want to manually put up this message or have something like that go
up automatically when the origin server is not reachable?

If you want to do it manually, then you could put something like this in
the virtualhost configuration for each site that the proxy allows access to
(not tested since I am not able to connect to my server right now):

RewriteEngine On
# if maintenance.html exists
RewriteCond maintenance.html -f
# and the request is not for maintenance.html
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
# redirect to maintenance.html
RewriteRule ^(.*)$ /maintenance.html [L]

Then you can put a file called maintenance.html in the DocumentRoot and
this rule should be activated.

If you want to change the message that shows up automatically if the origin
site is not reachable, you just need to add this:
ErrorDocument 503 /maintenance.html

If you have questions (or if this really does not work), I will be at my
computer later and should be able to clarify.

- Y


On Wed, Jan 8, 2014 at 4:15 PM, Charles W Buege <cbu...@moreycorp.com>wrote:

> All -
>
> I asked this question a couple weeks ago and my topic was hijacked and
> never answered, so I figured I'd wait a little while and then ask again.
>
> Here's my situation:  I've got multiple Apache web servers running on
> different platforms (IBM POWER7, Red Hat, CentOS, Windows) and I want to
> setup a way for my users so that when they try to access one of the sites
> that is down for maintenance, they get a message like this:
>
> ------------------------------------------------------------------------------------------
> Server Off-Line for Maintenance
>
> Our servers will be back on line on Monday, January 1, 2011 at 8:00 AM.
>
> Thank you for your patience.
>
> ------------------------------------------------------------------------------------------
>
> I was under the understanding that to do something like this I'd want to
> setup a 'front-end reverse proxy' server in front of all of these other
> servers to do this task.
>
> Is it a 'reverse proxy' I want to use here?  Is it something else I should
> be setting up?
>
> And if anyone can then point me in the right direction for learning how to
> do this correctly (YouTube videos, books, PDFs, etc.), it would be greatly
> appreciated.
>
> Thank you,
> Charles
>
> cbuege (at) moreycorp (dot) com - if you would like to e-mail me back
> directly, feel free!!
>
>
>
>
>
>
> This e-mail, including attachments, may contain information that is
> confidential and/or proprietary, and may only be used by the person to whom
> this email is addressed. If the recipient of this e-mail is not the
> intended recipient or an authorized agent, the reader is hereby notified
> that any dissemination, distribution, or copying of this e-mail is
> prohibited. If this e-mail has been delivered to you in error, please
> notify the sender by replying to this message and deleting this e-mail
> immediately.

Reply via email to