Re: distribute proxy.pac

From: Henrik Nordstrom <>
Date: Sun, 11 Oct 1998 18:58:48 +0200

Daniel Suen wrote:

> Is it possible, either in squid 1.1.x or 1.2, that one can distribute
> proxy.pac without using a web server?

Teoretically yes. Squid 1.2 includes a primitive HTTP server for icons
and you can teoretically add any file to this.

Copy you pac file to icons/proxy.pac and add the following two lines to

\.pac$ application/x-ns-proxy-autoconfig anthony-script.gif - ascii
+view +download
^internal-pac-file$ - proxy.pac - ascii

The pac file is then accesible as
assuming your Squid is named and is running on
port 3128

The negative side effect of this is that any .pac file downloaded from a
FTP server will have application/x-ns-proxy-autoconfig as filetype which
may confuse Netscape somewhat (easy to get around by clicking on one of
the icons for viewing or binary download).

If you want another path after squid-internal-static then use a
redirector to rewrite it. You have to keep squid-internal-static unless
you turn on httpd_accel.

Henrik Nordström
Spare time Squid hacker
Received on Sun Oct 11 1998 - 15:16:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:25 MST