decorrelation SITE et sous domain
[lhc/ansible.git] / templates / nginx_www_server.j2
index 68b7502..1000490 100644 (file)
@@ -4,7 +4,7 @@ server {
     access_log /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/access.log main buffer=32k;
     error_log  /home/sites/log/nginx/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/error.log warn;
 {% if ssl_ready is defined and ssl_ready %}
-    return 301 https://{{ DOMAIN }}.{{ TLD }}$request_uri;
+    return 301 https://{{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }}$request_uri;
 }
 server {
     listen 443 ssl;