Download:
child 93:dcff7863ea75
parent 91:e66349b7f9c6
92:00605a68a8b1
Anton Shestakov <av6@dwimlabs.net>, Mon, 04 Apr 2016 08:20:53 +0800
provision: use $host for HTTP->HTTPS redirection

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im file | annotate | diff | comparison | revisions
--- a/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Mon Apr 04 08:17:11 2016 +0800
+++ b/contrib/provision/roles/tram-im/templates/etc/nginx/sites-available/tram-im Mon Apr 04 08:20:53 2016 +0800
@@ -11,7 +11,7 @@
access_log /var/log/nginx/{{ domain }}.access.log;
error_log /var/log/nginx/{{ domain }}.error.log;
- return 301 https://{{ domain }}$request_uri;
+ return 301 https://$host$request_uri;
}
server {