[squid-users] Help! Squid Host header rewriting
squid3 at treenet.co.nz
Thu Nov 19 12:02:09 UTC 2015
On 20/11/2015 12:12 a.m., LauranceKuo wrote:
> I met the same problem as the below link:
> GET http://18.104.22.168/uutiset/ HTTP/1.1\r\n
> Host: www.hs.fi\r\n
That is a request for http://22.214.171.124/uutiset/.
It is *NOT* a request for http://www.hs.fi/uutiset/.
:: www.hs.fi has address 126.96.36.199
The sender is *lying*, and Squid knows it. Please read the response I
gave in that thread you quoted.
> GET /uutiset/ HTTP/1.0\r\n
> Host: 188.8.131.52\r\n
> With new version of Squid, is there a solution pass on the original Host
> header in this case? Thanks very much!
This is one of the fundamental fixes that Squid performs to keep the
Internet actually working reliably in the presence people placing
garbage into the Host header (stuff like that "www.hs.fi" lie). It is
>From the fact that the output header says "HTTP/1.0" I deduce that you
are using a very outdated Squid version. Please upgrade. Squid has been
HTTP/1.1 compliant for many years now.
More information about the squid-users