X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=templates%2Fnginx_www_common.j2;h=831a7396a4db4e70a48b932592d23dd8112de778;hb=2699f86f39187494974c5a1a5c4ad22b584e2e67;hp=116897705d1ad6182df37c7c654d500bd30f8be3;hpb=d2ef9c4c99e81dc58f3d4346c362eae2c4d7915b;p=lhc%2Fansible.git diff --git a/templates/nginx_www_common.j2 b/templates/nginx_www_common.j2 index 1168977..831a739 100644 --- a/templates/nginx_www_common.j2 +++ b/templates/nginx_www_common.j2 @@ -1,7 +1,5 @@ -server_name - {{ DOMAIN }}.{{ TLD }} - {{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }}; -rewrite ^/(.*) http://{{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }}/$1 permanent; +server_name {{ DOMAIN }}.{{ TLD }} {{ config_ss_domain | default(SITE) }}.{{ DOMAIN }}.{{ TLD }}; +{# semble ne pas être nécessaire rewrite ^/(.*) http://{{ config_ss_domain | default(SITE) }}.{{ DOMAIN }}.{{ TLD }}/$1 permanent; #} root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/; index index.html;