alphagov/puppet-nginx — pull request #1 by dcarley (2013-07-08 16:06:50+00:00)
Title: Redirect HTTP->HTTPS with $host variable

Use `$host` instead of `$server_name` when redirecting from HTTP to HTTPS.
This means that the client will continue using the same hostname that they
came in on, rather than being redirected out to the canonical address, which
is the first value of the `server_name` directive. This is useful for server
aliases (additional args to `server_name`).

--

To be used for CI.

/cc @samjsharpe @nickstenning @danielabel