[squid-users] reverse proxies and Host request header

Antony Stone Antony.Stone at squid.open.source.it
Fri Jun 12 14:14:00 UTC 2015


On Friday 12 June 2015 at 16:08:59 (EU time), Julianne Bielski wrote:

> reverse proxies are always "transparent" from the perspective of
> the client and the Host header is often used by the proxy
> to map to the correct back end origin server.
> 
> I also think they usually pass the Host header as-is to the origin server.
> This last piece puzzles me because it means that the origin server is being
> given a different host name than itself in the header. Is this behavior
> "correct"? Does it ever cause problems?

How is this different from a normal web server serving multiple virtual host 
sites?

The web server doesn't care who "it" is, it just cares which virtual host it's 
being asked to serve pages for.  A reverse proxy in the way basically makes no 
difference.


Regards,


Antony.

-- 
All generalisations are inaccurate.

                                                   Please reply to the list;
                                                         please *don't* CC me.


More information about the squid-users mailing list