LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] proxy.pac

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell