Re: Summary of Transparent proxy/How-to

From: Erik T. Brandsberg <ebrandsb@dont-contact.us>
Date: Tue, 9 Dec 1997 19:49:07 -0600 (CST)

Yep. I had just reviewed the archives--I'm not on the list. I get too
much mail as it is. The advantage to this patch is that it uses the
ip_filter to pull the REAL destination address from the filtering,
allowing BSD boxes and anything else the same advantage as a Linux box
with it's filtering capibility--only IP Filter is more advanced in many
aspects.

Erik Brandsberg
CIO, The Link
On Tue, 9 Dec 1997, Henrik Nordstrom wrote:

> Erik T. Brandsberg wrote:
>
> > The main drawback of this is that
> > squid uses "http://123.123.123.123/url" for caching, thus sites with
> > several IP addresses will get redundantly cached, reducing hit rates.
> > Virtual configurations override the host header in the stock squid, thus
> > it won't fill in the server name in the rewritten URL.
>
> It is a very simple patch to change this. I submitted it to the list a
> few days ago (I think). Switch the order of the "if (vhost_mode)" and
> "if (opt_accel_uses_host..." blocks in src/icp.c:parseHttpRequest().
>
> By doing this you give the Host: header higher precendence than the
> virtual IP address, making Squid to use the Host: header if available,
> and fall back to the server IP if not. (enable both virtual server
> support, and "accel uses host" in squid.conf)
>
> ---
> Henrik Nordström
>
Received on Tue Dec 09 1997 - 17:51:56 MST

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