Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a VPS set up as a proxy server with Squid Proxy.

Now what I want to do is, set up another proxy server on a different VPS- this VPS will have its own set of possible IPs to function as a proxy.

I want to be able to route to any one of the proxies...

For doings the above, do I need to write a script/library from scratch? Is there any existing library which allows easy configuration of Squid, and allows multi-server Squid setups to function? (I would prefer for the library to be in Java).

share|improve this question

1 Answer 1

up vote 1 down vote accepted

To use both proxies in load balancing mode or active-passive mode, you can install an HTTP load balancer like haproxy. Haproxy will receive the traffic and forward it to the appropriate proxy server according to the configuration.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.