logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Mod_Proxy with failover
Author
ankur328



Joined: 13 Jul 2014
Posts: 3

PostPosted: Sun 13 Jul '14 18:45    Post subject: Apache Mod_Proxy with failover Reply with quote

I have the following setup in my apache vhost:



Code:
ProxyPass /abc http://www.newest.com/
ProxyPassReverse /abc http://www.newest.com/

I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout should be in Proxy Pass and if timeout occurs it shifts to Refer.com | The world

Please help me in the same as I am stuck !

Thanks
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 14 Jul '14 1:04    Post subject: Reply with quote

If you use balancer you can define how often apache should retry until using another member. See the balancer example at http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
Back to top


Reply to topic   Topic: Apache Mod_Proxy with failover View previous topic :: View next topic
Post new topic   Forum Index -> Apache