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?
            Asked
            
        
        
            Active
            
        
            Viewed 515 times
        
    0
            
            
         
    
    
        x-yuri
        
- 16,722
- 15
- 114
- 161
- 
                    Any reasoning behind downvoting? – x-yuri Jan 26 '21 at 12:51
1 Answers
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