[squid-users] Squid intermittently not sending host header to peer

Amos Jeffries squid3 at treenet.co.nz
Mon Sep 3 13:22:01 UTC 2018

On 3/09/18 9:32 PM, Michael Thomas wrote:
> I'm trying to figure out this weird intermittent issue.
> I have two squid servers running, non-caching, non-transparent.
> Client -> Squid1 -> Squid2 -> Internet
> All HTTPS requests work as expected, but randomly, about 50% of the
> time, HTTP requests fail.
> The reason for the failure is that the first squid server (Squid1) is
> not correctly forwarding the request to the second. It is stripping away
> the hostname, and obviously the second squid server has no clue what to
> do with it then!

Can you please provide:

* details of your Squid version(s), the output of "squid -v" contains that.

* a copy of the HTTP message actually received by Squid2.

* a copy of the same HTTP message as it is leaving Squid1.

"debug_options 11,2" can provide that in your cache.log.

Also, is there any sign of CONNECT messages requesting tunnels to Squid2
being received at Squid1 ?

Your logs contain signs of authentication being performed, and you
mention HTTPS being handled by these proxies. Yet the config showed no
signs of either having been configured. Can you please provide the
actual config where you are seeing this behaviour and generating the
logs from.
 A minimal is fine, but it does need to be generating the logs, etc for
the info to correlate correctly.


More information about the squid-users mailing list