Re: [squid-users] proxy.pac config

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 11 May 2007 09:36:50 +0800

On Fri, May 11, 2007, SSCR Internet Admin wrote:
> Hi,
>
>
>
> I wanted to ask if this is possible. Ive just installed a second squid
> server and was wondering if I could create somewhat a loadbalancing without
> using TCP-loadbalancer or HA by using a proxy.pac that is capable of
> detecting a busy/failed server and connect to the next available proxy
> server.
>
>
>
> Squid 1
>
> Internet<----------+--------->Workstation(with proxy.pac)
>
> Squid 2

There's plenty of examples of proxy.pac file based load balancing and failover.
Failover is easy, just give a number of entries in a list, ie:

return "proxy1:3128; proxy2:3128"

And to failover to direct, try:

return "proxy1:3128; proxy2:3128; DIRECT"

let me know if this doesn't work.

Adrian
Received on Thu May 10 2007 - 19:37:06 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:04 MDT