Download:
child 80:44ce72e32818
parent 78:869d3bf908e3
79:1696474c2f0d
Anton Shestakov <av6@dwimlabs.net>, Wed, 06 Apr 2016 13:08:27 +0800
provision: use $host variable in HTTP->HTTPS redirect

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar file | annotate | diff | comparison | revisions
--- a/provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar Wed Apr 06 13:07:38 2016 +0800
+++ b/provision/roles/fruitbar/templates/etc/nginx/sites-available/fruitbar Wed Apr 06 13:08:27 2016 +0800
@@ -12,7 +12,7 @@
access_log /var/log/nginx/fruitbar.{{ umbrella }}.access.log;
error_log /var/log/nginx/fruitbar.{{ umbrella }}.error.log;
- return 301 https://fruitbar.{{ umbrella }}$request_uri;
+ return 301 https://$host$request_uri;
}
{% endif %}