Re: [squid-users] Caching in accelerator mode

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 22 May 2001 18:26:48 +0200

Such problems are almost exclusively caused by
"redirect_rewrites_host_header off" and redirecting the two sites to the
same URL... There are also a few cases where it may happen if
httpd_accel_uses_host_header is off.

--
Henrik Nordstrom
Squid Hacker
Jez Ahl wrote:
> 
> Hi All,
> 
> Apologies if this has been covered, but I can find no explanation.
> 
> We are running multiple instances of squid-2.3STABLE2 on Solaris 7 in
> reverse proxy mode.
> All requests hit a master, non-caching squid. Requests are then redirected
> (based on URL) to further squids (on localhost) by way of a redirector
> script.
> This allows us to proxy many sites through one box, each with their own
> separate cache.
> In this case, one of the sub-caches redirects to two different sites by way
> of another redirector. e.g. to http://www.sitea.com/ and
> http://www.siteb.com
> 
> What we are finding is that a page request to one site. eg
> http://www.sitea.com/somepage.htm gets cached, but when someone requests
> http://www.siteb.com/somepage.htm, they get the cached page that was served
> from sitea. It's as if squid is not caring what the requested hostname is.
> 
> Our config is:
> 
> redirect_program /opt/squid/bin/rewriter
> redirect_rewrites_host_header   off
> visible_hostname www.sitea.com
> httpd_accel_host localhost
> httpd_accel_port 8002 (This is the port of this squid)
> httpd_accel_uses_host_header on
> 
> Any ideas how I can stop this happening?
> 
> Any help will be appreciated.
> 
> Jez Ahl
> Senior Systems Administrator
> Andel Consulting Ltd
> Tel 020 7663 5772
> Fax 020 7665 5060
> jez@andelconsulting.com
> 
> Unless otherwise stated the views expressed in this email are personal and
> not those of Andel Consulting.
Received on Tue May 22 2001 - 10:33:50 MDT

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