lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.0.12 vs lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.0.13
- old
+ new
@@ -3,10 +3,11 @@
}
<% if nginx_use_ssl %>
server {
listen 80;
- rewrite ^(.*) https://$host$1 permanent;
+ server_name <%= nginx_server_name %>;
+ rewrite ^(.*) https://$server_name$1 permanent;
}
<% end %>
server {
<% if nginx_use_ssl %>