Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.