[squid-users] Testing .pac fle

From: Müller, Thorsten <thorsten.mueller@dont-contact.us>
Date: Mon, 26 May 2003 12:08:40 +0200

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi NG,
thanks for your replies.
I've written a proxy.pac as described in
(http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html)
and it's not working.

This is our proxy.pac:

FindProxyForURL(url, host) {

      if ( (url.substring(0, 5) == "http:" ) ||
           (url.substring(0, 7) == "gopher:" ) ) {
         return "PROXY proxy.mydomain.com:8080; " +
                "SOCKS socks.mydomain.com:8000";
}

I've tested it with Internet Explorer and it's not working.
After that i installed Netscape 7 and tried it with this.
But this wasn't successful.

It's on a Debian Box with apache as webserver.
I've added the following line to my httpd.conf:
        AddType application/x-ns-proxy-autoconfig .pac
and reloaded apache.

This is the result of "file /var/www/proxy.pac"
/var/www/proxy.pac: ASCII text, with CRLF line terminators

In the access.log is no entry for my computer and i'm not able to
access
external websites.

Under Netscape i entered the URL to proxy.pac under Options, Proxy,
"Automatische Proxy-Konfiguration-URL".

http://proxy.mydomain.com/proxy.pac

In the apache log i can see that my client make a request for
proxy.pac.

How can i check if it's a configuration failure or where's my
problem?

Regards

Thorsten Müller
Systems Engineer
SIT/DV
Business Unit Information

MATERNA GmbH - Information & Communications
Theodor-Heuss-Straße 59 * 61118 Bad Vilbel * Germany
phone:+49 6101 806 124 * fax: +49 6101 806 590
mobil: +49 175 2968579
E-Mail: thorsten.mueller@materna.de
http://www.materna.com * http://www.materna.de

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPtHnp9gohzamlZnzEQICzQCgujTNjQxYiQNXgtsZ/jIS6zgMjZIAn0Y6
6CeU8/nSkMT0UB6BS0gwl7zu
=gpSP
-----END PGP SIGNATURE-----
Received on Mon May 26 2003 - 04:09:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:02 MST