[ILUG] proxy.pac
Mark Kilmartin
mrk at renre-europe.com
Tue Jul 16 12:47:34 IST 2002
I'm trying to set up automatic proxy configuration on the company
network.
I have created a proxy.pac file on the server.
A client has been configured to load it.
It does load it.
But.
The following proxy.pac file works.
function FindProxyForURL(url, host) {
return "PROXY 172.17.1.170:8080";
}
This one works and the clients use 172.17.1.170:8080 for the proxy
settings and I can browse any page I want.
However if I get a little more adventurous and try stop say addresses
that are just plain hostnames e.g. http://host/ going through the proxy,
by changing the proxy.pac to the following.
function FindProxyForURL(url, host) {
if isPlainHostName(host)
return "DIRECT";
return "PROXY 172.17.1.170:8080";
}
Then all connections go direct, and bypass the proxy.
Has anybody else done this in the past.
The browser I'm using is mozilla 1.0 if that makes any difference.
MArk
More information about the ILUG
mailing list