Answer the question
In order to leave comments, you need to log in
How to set up a pac-file to automatically change the proxy to a backup when there is no connection on the main one?
There are 2 proxy servers in the network:
function FindProxyForURL(url, host)
{
if (isResolvable(host))
return "PROXY 10.10.1.141:8080";
else
return "DIRECT";
}
Answer the question
In order to leave comments, you need to log in
Decided like this:
function FindProxyForURL(url, host) {
return "PROXY 10.10.1.4:8080; PROXY 10.10.1.141:8080; DIRECT";
}
The simplest thing that came to my mind is to generate it with a script on the server where this file is located.
In the script, specify a check that if a certain site is not accessible from the outside through one proxy - substitute it in return "PROXY $PROXY_ADDR:8080"; second address.
I think the pac file itself does not have such a check.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question