| OLD | NEW | 
|---|
| 1 <%- if @aliases %> | 1 <%- if @aliases %> | 
| 2 <%-   @aliases.each do |vhost_alias| %> | 2 <%-   @aliases.each do |vhost_alias| %> | 
| 3 server | 3 server | 
| 4 { | 4 { | 
| 5   server_name '<%= vhost_alias %>'; | 5   server_name '<%= vhost_alias %>'; | 
| 6 | 6 | 
| 7   listen 80; | 7   listen 80; | 
| 8   listen [::]:80; | 8   listen [::]:80; | 
| 9 <%-     if @certificate != @private_key %> | 9 <%-     if @certificate != @private_key %> | 
| 10   listen 443 ssl spdy; | 10   listen 443 ssl http2; | 
| 11   listen [::]:443 ssl spdy; | 11   listen [::]:443 ssl http2; | 
| 12 | 12 | 
| 13   ssl_certificate <%= @certificate %>; | 13   ssl_certificate <%= @certificate %>; | 
| 14   ssl_certificate_key <%= @private_key %>; | 14   ssl_certificate_key <%= @private_key %>; | 
| 15 | 15 | 
| 16   location / | 16   location / | 
| 17   { | 17   { | 
| 18     rewrite .* https://<%= @vhost %>/ redirect; | 18     rewrite .* https://<%= @vhost %>/ redirect; | 
| 19   } | 19   } | 
| 20 <%-     else %> | 20 <%-     else %> | 
| 21 | 21 | 
| 22   location / | 22   location / | 
| 23   { | 23   { | 
| 24     rewrite .* http://<%= @vhost %>/ redirect; | 24     rewrite .* http://<%= @vhost %>/ redirect; | 
| 25   } | 25   } | 
| 26 <%-     end %> | 26 <%-     end %> | 
| 27 } | 27 } | 
| 28 <%-   end %> | 28 <%-   end %> | 
| 29 <%- end %> | 29 <%- end %> | 
| 30 |  | 
| OLD | NEW | 
|---|