decorrelation SITE et sous domain
[lhc/ansible.git] / templates / nginx_www_common.j2
index 829056c..1168977 100644 (file)
@@ -1,6 +1,7 @@
 server_name
     {{ DOMAIN }}.{{ TLD }}
-    www.{{ DOMAIN }}.{{ TLD }};
+    {{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }};
+rewrite ^/(.*) http://{{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }}/$1 permanent;       
 root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/;
 index index.html;