Re: [PATCH] Server PAC file from Squid

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 29 Jun 2010 22:45:23 +1200

Kinkie wrote:
> On Tue, Jun 29, 2010 at 6:01 AM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
>> One of the old requests is to server the PAC files directly from Squid
>> without needing a local HTTP server just for the one file.
>>
>> This patch makes Squid intercept requests which use it's visible_hostname
>> (and hostname_aliases) for /wpad.dat and pass out a PAC file specified in
>> the configuration.
>>
>
> +1 on the idea, only two doubts:
>
> - why wpad.dat? That's a microsoft-ism

Yes, it's to catch those IE browsers. The other browsers don't exactly
care what the URL is, but some IE and windows agents still do the
wpad.dat scan.
  Basically it just increases the catchment area.

I could easily make it advertise proxy.pac in the error page and catch
both if it's really wanted.

> - why a case-insensitive match on the wpad.dat urlpath?

Same. IIRC there were some "/WPAD.DAT" seeking agents. Not sure if they
still exist but it does not hurt to be cautious here.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.4
Received on Tue Jun 29 2010 - 10:45:43 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 29 2010 - 12:00:08 MDT