[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 778
  • Last Modified:

How do I set up a .pac file to use a proxy server and if not available go direct.

We currently are using a proxy and also using a secondary DSL connection for failover. The last piece of the puzzle is a .pac file to use the proxy when connected to the primary connection and go directly out the secondary connection in case the primary connection goes down. I am new to .pac files and have used the ones in the past that call for using a direct connection when the network settings are not detected. This works for my laptop users, the problem I am faced with is these workstaions are always connected to the network so this type of .pac file would not work. So in basic terms I need a .pac file that says if the proxy server is detected or reachable, use it. If not go direct.
0
rayosburnjr
Asked:
rayosburnjr
1 Solution
 
ncollingsCommented:
Function FindProxyForURL(url, host) { return "PROXY proxy.example.com:8080; DIRECT"; }

This will force the browser to try the proxy first and if it is not avaliable then go direct.
0
 
mccrackyCommented:
Are you saying your proxy is not on your network?  If it is, I wouldn't worry about the .pac file, but routing out the back end of the proxy.  If your main connection goes down reroute the backend out the other connection.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now