Permalink
Browse files

nginx: replace return statement with location stanza on https_redirect

  • Loading branch information...
1977er committed Dec 18, 2018
1 parent 770fc0a commit 1174e2e40ecfed01420f4dab394d001e0d3e9a5e
Showing with 4 additions and 1 deletion.
  1. +4 −1 roles/nginx/templates/02-nginx-site.j2
@@ -7,7 +7,10 @@ server {
access_log off;
error_log /var/log/nginx/error-{{ item.domain }}.log;

return 301 https://{{ item.domain }}$request_uri;
location / {
return 301 https://{{ item.domain }}$request_uri;
}

{% else %}
{% include '04-nginx-site-basics.j2' %}
{% include '05-nginx-site-location.j2' %}

0 comments on commit 1174e2e

Please sign in to comment.