2 Replies Latest reply on Apr 21, 2010 5:49 PM by sperkins-communitymed

    Proxy.pac config

      I just received this system a few weeks ago and am slowly making progress on getting it setup.  Today I finally got DHCP to push out my proxy.pac file using option 252, and using that file I am able to hit the primary server just fine and proxy through it.  However when I tested failover with my backup proxy server, it just timed out.

       

      I did test both of my proxy servers individualy using my IE proxy settings without using a proxy.pac file with no problem so I think the problem might be with how I have the end of my proxy.pac file configured.

       

      I am just wondering if someone more experienced than I am with proxy.pac's can tell if something is not right?

       

      function FindProxyForURL(url, host){

      // variable strings to return

      if (shExpMatch(url, "http://*.InternalWebSite*"))
                      {
                                      return "DIRECT";
                      }
      if (shExpMatch(url, "http://InternalWebSite*"))
                      {
                                      return "DIRECT";
                      }
      if (shExpMatch(url, "http://InternalWebSitel*"))
                      {
                                      return "DIRECT";
                      }
         
      else
      {
      return "PROXY 10.131.x.x:9090" + "PROXY 10.131.x.x:9090"; 
      }

        }

       

       

      I did use the google proxy.pac tester with no problems, and the bypass url's  all seemed to work fine.  My main concern with this is just having teh failover set correctly so if the main proxy server fails the secondary server will take over with no problemsor delays.

       

      Thanks in advance for any help!

       

       

      Message was edited by: sperkins-communitymed on 4/21/10 4:48:47 PM CDT

       

       

      on 4/21/10 4:49:16 PM CDT
        • 1. Re: Proxy.pac config

          It appears this line is syntactically incorrect:

          return "PROXY 10.131.x.x:9090" + "PROXY 10.131.x.x:9090";

           

          This returns the erroneous string "PROXY 10.131.x.x:9090PROXY 10.131.x.x:9090"

          This will only latch onto the first proxy.

           

          You should have the line say:

          return "PROXY 10.131.x.x:9090; " + "PROXY 10.131.x.x:9090";

            or drop the plus sign:

          return "PROXY 10.131.x.x:9090; PROXY 10.131.x.x:9090";

           

          And one other thing. The timeout process isn't entirely transparent. As you are proxying, when the proxy goes down it will give you a IE timeout error (page cannot be displayed...) When IE (or other browser) gives you one of these, that's the trigger for it to use the next one. A refresh should then reconnect and you proceed on your merry way.

           

           

           

           

           

          Message was edited by: Erik Elsasser on 4/21/10 5:32:08 PM CDT
          • 2. Re: Proxy.pac config

            Thanks for the help, that one semi colon made all the difference!  I just got through testing it out and failover worked like a charm.