| Index: modules/nginx/templates/site.erb |
| diff --git a/modules/nginx/templates/site.erb b/modules/nginx/templates/site.erb |
| index ff866502916599c6e7d54aab751ee0ebbd65fbdd..6cd83376db922373162a0cabe31b1f353f40599d 100644 |
| --- a/modules/nginx/templates/site.erb |
| +++ b/modules/nginx/templates/site.erb |
| @@ -71,6 +71,10 @@ location = /50x.html |
| root /usr/share/nginx/html; |
| } |
| +if ($http_host ~ "\.$") { |
|
Wladimir Palant
2016/05/24 19:08:07
Nit: The opening bracket belong on the next line.
|
| + rewrite ^(.*) $scheme://$host$1 permanent; |
|
Wladimir Palant
2016/05/24 19:08:07
This relies on undocumented behavior, namely $host
|
| +} |
| + |
| <% if @content %> |
| <%= content %> |
| <% end %> |