0

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?

x-yuri
  • 16,722
  • 15
  • 114
  • 161

1 Answers1

0

nginx-proxy has proxy_set_header Host $http_host in its config. Sounds like an authoritative source to me.

x-yuri
  • 16,722
  • 15
  • 114
  • 161