getsentry/sentry — pull request #1053 by mattspitz (2013-11-07 00:34:39+00:00)
Title: Pass $http_host as Host header in sample nginx config.

$http_host includes the port that the server is running on. $host does not.

If your server is listening on 8080, Sentry generates redirects like "http:///path/to/thing" if you pass Host = $http. Passing Host = $http_server causes Sentry to generate correct redirects, including the port if necessary.