diff --git a/ansible/roles/nginx/templates/nginx_django.conf.j2 b/ansible/roles/nginx/templates/nginx_django.conf.j2 index 5e43927..8c390bb 100644 --- a/ansible/roles/nginx/templates/nginx_django.conf.j2 +++ b/ansible/roles/nginx/templates/nginx_django.conf.j2 @@ -39,7 +39,7 @@ server { location / { proxy_pass_header Server; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; diff --git a/ansible/roles/nginx/templates/nginx_django_ssl.conf.j2 b/ansible/roles/nginx/templates/nginx_django_ssl.conf.j2 index 8a84812..0167522 100644 --- a/ansible/roles/nginx/templates/nginx_django_ssl.conf.j2 +++ b/ansible/roles/nginx/templates/nginx_django_ssl.conf.j2 @@ -54,7 +54,7 @@ server { location / { proxy_pass_header Server; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;