[squid-users] Proxy.pac Port

From: Matt <matt@dont-contact.us>
Date: Thu, 6 May 2004 00:00:21 -0500

Is there a way with proxy.pac file to redirect all port 80 traffic to a
proxy but not any other traffic?

function FindProxyForURL(url, host)
  {
      if (url.substring(0, 5) == "http:") {
        return "PROXY my.proxy:8080";
      }
      else {
        return "DIRECT";
      }
  }

for instance the above wont work. If it has an "http:" in url it gets
redirected. What if someone enters www.mydomain.com I still want it to go.
And if someone enters www.mydomain.com:8080 I do not want it to go.

Any ideas?

Matt
Received on Wed May 05 2004 - 23:00:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT