lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.0.16 vs lib/generators/kapify/nginx/templates/nginx_conf.erb in kapify-0.1.0
- old
+ new
@@ -4,10 +4,10 @@
<% if nginx_use_ssl %>
server {
listen 80;
server_name <%= nginx_server_name %>;
- rewrite ^(.*) https://$server_name$2 permanent;
+ return 301 https://<%= nginx_server_name %>$request_uri;
}
<% end %>
server {
<% if nginx_use_ssl %>