Solved

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

Posted on 2010-09-07
2
770 Views
Last Modified: 2013-11-19
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
Comment
Question by:rayosburnjr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
ncollings earned 500 total points
ID: 33618788
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
 
LVL 12

Expert Comment

by:mccracky
ID: 33651183
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question