Re: [squid-users] Testing .pac fle

From: Joel Jaeggli <[email protected]>
Date: Tue, 27 May 2003 03:21:52 -0700 (PDT)

mozilla and probably netscape as well have a javascript console available
under tools/web development that I generally find highly useful for
debuging what's going on with changes to our autoconf scripts.

joelja

 On Mon, 26 May 2003, "M�ller, Thorsten" wrote:

>
> -----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-----
>

-- 
-------------------------------------------------------------------------- 
Joel Jaeggli	      Academic User Services   joelja@darkwing.uoregon.edu    
--    PGP Key Fingerprint: 1DE9 8FCA 51FB 4195 B42A 9C32 A30D 121E      --
  In Dr. Johnson's famous dictionary patriotism is defined as the last
  resort of the scoundrel.  With all due respect to an enlightened but
  inferior lexicographer I beg to submit that it is the first.
	   	            -- Ambrose Bierce, "The Devil's Dictionary"
Received on Tue May 27 2003 - 04:28:20 MDT

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