``proxy_set_header Host $http_host;`` inside the location block.