Hi,
We use 3 Wingate proxy servers and provide our users with a PAC file so they can automatically failover to the next working Wingate server should the first go offline. This works great if the actual Wingate server(s) go offline of the Wingate service crashes. But today we had an issues with the primary Wingate server not being able to authenticate users for some reason, so it started to return this error:
Proxy problem
----------------------------------
WinGate does not have a valid user database configured, or it is not available. No web browsing is possible, please contact your system administrator.
We fixed it now (restart of the Wingate service...) so we can't be 100% sure, but it's likely this caused a 504 HTTP error being returned to the browser based on this wingate log entry:
514235323 2/7/2022 8:30:18.442 192.168.24.243 WWW Proxy Server 35772 1801818896 info 0 responding with code 504 Proxy problem
The problem is that the client browser did not interpret the Wingate error as an actual issue that would have triggered the failover to the next server in the proxy.PAC file. So instead of going to the next Wingate server, the browsers displayed that error page to the users.
Our (redacted) relevant section of our PAC file is below. Is there anything we can do either in the PAC file itself or in Wingate's configuration to make it behave so that **Wingate** HTTP 5xx errors cause the next proxy in the PAC to be used? The trick here is that this should only happen for Wingate errors. If a destination website on the internet is having issues and is reporting HTTP 500 errors, well that's an issue with the website and the proxy servers should not be rolled because of that.
Thanks!
Roberto
function FindProxyForURL(url, host)
{
return "PROXY 10.252.1.1:3128; " +
"PROXY 10.252.1.2:3128" +
"PROXY 10.252.1.3:3128";
}