Apache Mod_Proxy with failover


 
Thread Tools Search this Thread
Top Forums Web Development Apache Mod_Proxy with failover
# 1  
Old 07-13-2014
Apache Mod_Proxy with failover

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

---------- Post updated 07-14-14 at 02:03 AM ---------- Previous update was 07-13-14 at 08:27 PM ----------

I have tried this:

Code:
<Proxy balancer://mycluster>
BalancerMember http://abc.com/son timeout=2 retry=1
BalancerMember http://def.com/hud
</Proxy>
ProxyPass /son balancer://mycluster


If both are on I mean abc.com and def.com it keeps on Load Balancing between them. However I want to open the first URL always and second should work only when first is down..

Any suggestions?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Httpd with mod_proxy redirect

Hi team, I was like unable to solve this interview question, Any help from them experts here please.. "Your supervisor requires that all web requests for "http://dev.example.net" be passed to "http://newdev.example.net". She states that upon redirect, the URL in the web browser must remain... (1 Reply)
Discussion started by: leo_ultra_leo
1 Replies

2. IP Networking

IP failover needed

All, I am looking to setup a simple IP failover setup, but it seems every place i look has some difficult setup like pacemaker or LVS. I only want to handle the IP piece to failover a VIP. Any suggestions? I checked out keepalived and that my work for me. (4 Replies)
Discussion started by: markdjones82
4 Replies

3. UNIX for Advanced & Expert Users

mod_proxy with ActiveX

Hi, I have a proxy with SSL that forward any request to a backend platform. In this moment I have a problem if I'm trying to execute an activex on the backend platform. I'm reading that the mod_proxy blocks any activex request because it don't trust for the system. How I can do? I'm reading... (0 Replies)
Discussion started by: lain
0 Replies

4. Red Hat

mod_proxy: (70007)The timeout specified...

Hi to all member's forum. I have an httpd server with mod_proxy that forward any request to an another server. the flow is: client --> requesto proxy https://miosito.it --> forward to server https://192.168.0.10:8443/ I'm reading this error in my httpd log in LogLevel debug (after some... (0 Replies)
Discussion started by: lain
0 Replies

5. Solaris

EMC Failover

Hi guys, I'm running vxdmp and powerpath at the same time. Vxdmp for internal disks and powerpath for external. The problem is that, on the failover tests which a fiber cable should be removed, the system cannot recognize the disks. Any hints on how to configure powerpath in order to... (4 Replies)
Discussion started by: glenioborges
4 Replies

6. UNIX and Linux Applications

Apache problem: mod_deflate with mod_proxy

I am using Apache 2.2.3 on RHEL5 and having problems to get mod_deflate work with mod_proxy. mod_deflate will compress files by mime-type just fine as long as those files are served statically from the local server. However, files served via dynamic php application (ie, MediaWiki) or via... (2 Replies)
Discussion started by: otheus
2 Replies

7. AIX

failover on 4.5 hacmp

Hi All, How do I trigger the failover on the second hacmp server? Please give me idea and I will do the rest. Thanks, itik (2 Replies)
Discussion started by: itik
2 Replies

8. IP Networking

Apache mod_proxy +DNS slow response problem

My company has a private network, including a Apache web server (Linux) and some WinXP machines. The web server had been configured to use mod_proxy to connect to window update site via another company proxy server. It works for few years. Recently, some parties had setup a DNS server on the... (2 Replies)
Discussion started by: donaldfung
2 Replies

9. UNIX for Advanced & Expert Users

directories failover

Hi, I have 3 directories (/1 /2 and /3) with same contents and want to achieve fail over among them. The Solution i thought of: 1. link /data to /1 (and provide users with /data to access) 2. CRON a script (to run every minute) to verify if /1 exist or not, if it does not exist (or its... (3 Replies)
Discussion started by: prvnrk
3 Replies

10. UNIX for Advanced & Expert Users

Double question: Apache mod_proxy and force connection over specific interface

Double question here ... Running on Debian Etch and Apache 2.0 1) Using mod_proxy and/or mod_proxy_http in apache 2.0. The basics of using mod_proxy are pretty simple so long as you're using a static config. I'm trying to figure out how to do it dynamically - that is, allow the entry of a... (4 Replies)
Discussion started by: Halfwalker
4 Replies
Login or Register to Ask a Question