Re: Transparent proxy with linux

From: Erik Nielsen <eln@dont-contact.us>
Date: Thu, 12 Nov 1998 12:35:12 -0700

Eduardo Y. Tsuzuki wrote:
> - when i use transparent proxy and access address (virtual domains) with
> only one IP (such as www.veja.com.br, www.infoexame.com.br, www.playboy.com.br)
> the proxy returns the same Web Page (the first that i access).. this problem
> doesn't occur when i configure the browser pointing directly to Squid (port
> 3128 in my case)....

This is because transparent proxying only routes by IP, not hostname.
To get virtual domains like that to work properly, you need to put the
following
in your squid.conf file:

httpd_accel_uses_host_header on

Then restart squid, and your problems should go away.
Make sure you've also got the following set (although you should already
if
you're using transparent proxy:

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on

-- Erik Nielsen, Cyberhighway Internet Services NOC

I've always maintained a cordial dislike for indent, because it's
usually
right.
             -- Larry Wall in <199806221558.IAA07251@wall.org>
Received on Thu Nov 12 1998 - 12:28:40 MST

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