ministryofjustice/sslloadbalancer-formula — pull request #7 by mikepea (2014-10-07 11:46:52+00:00)
Title: Redirect to a 'canonical_host'

Now we just have an optional 'canonical_host' pillar, which
determines if we redirect to that host for all requests, rather
than fuzzy logic about to-www or from-www.

This also reworks the redirect into an actual server block rather
than depending on if() -- as recommended by the nginx docs:

http://nginx.org/en/docs/http/converting_rewrite_rules.html