--- 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
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;