Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Re-direct to another apache server host |
|
Author |
|
mwtoty
Joined: 03 Apr 2018 Posts: 9 Location: US, IN
|
Posted: Tue 29 May '18 16:00 Post subject: Re-direct to another apache server host |
|
|
Hi,
I have a scenario that I wasn't sure about how to handle.
If my main Apache server is offline that handles the re-direct to a maintenance page can it be handled by another apache server with a different virtual host?
Example:
main apacher server handling virtual host prodmainURL. This server contains the redirect to prodmain-maintenanceURL during maintenance schedule redirect.
Can i setup the same with another apache server configured with another virtual host, example: testmainURL
so the redirect for prodmainURL is setup in the apache server testmainURL.
It will look like in apache server testmainURL, a redirect will be setup to poing prodmainURL to testmainURL.
thank you very much. I'm not really sure if this is posible or anyone here has a different strategy for it.
I also use a load balancer in our setup. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 30 May '18 17:56 Post subject: |
|
|
if you are using a load balancer why don't you use the same configuration files on both apache servers? If one this down, the other will still show the the webpage.
Sure you can use several vhosts / domains on apache. |
|
Back to top |
|
|
|
|
|
|