Today I found out that $host and $http_host differ. At least $host doesn't contain the port number. Although there's more to it. My understanding is that people usually do proxy_set_header Host $host, which is... wrong? Is there some sort of general guideline?
$host
$http_host
proxy_set_header Host $host
nginx-proxy has proxy_set_header Host $http_host in its config. Sounds like an authoritative source to me.
nginx-proxy
proxy_set_header Host $http_host
1.4m articles
1.4m replys
5 comments
57.0k users