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
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!