X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fnginx_www_common.j2;h=116897705d1ad6182df37c7c654d500bd30f8be3;hb=d2ef9c4c99e81dc58f3d4346c362eae2c4d7915b;hp=829056c72a162cf997a8dda3eadb3b643479a092;hpb=058c0e0c1ce6fc1fb225fceb18cc8898f9a2a063;p=lhc%2Fansible.git diff --git a/templates/nginx_www_common.j2 b/templates/nginx_www_common.j2 index 829056c..1168977 100644 --- a/templates/nginx_www_common.j2 +++ b/templates/nginx_www_common.j2 @@ -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;