Thanks Adrian it works! I could see that it shift to the other server when
I manually shutdown squid.
Now, this could be a harder (for a noob like me). What if I have 500
workstation, so I have to config each browser to use my new pac file, is
there a way that this pac will eventually force all browser to use pac.
Like blindly install pac on their browser when they go directly to port 80.
Thanks
-----Original Message-----
From: Adrian Chadd [mailto:adrian@creative.net.au]
Sent: Friday, May 11, 2007 9:37 AM
To: SSCR Internet Admin
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] proxy.pac config
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
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu May 10 2007 - 20:07:24 MDT
This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:04 MDT