X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=templates%2Fnginx_paheko_common.j2;h=a30fd26cdd4ac09f504684a5f2c2e393f57e8fd8;hb=HEAD;hp=02eb52d40cc2493becbecf9eaf12fffae46cac98;hpb=f0a634c73af3548be7ea962f1065f6d1d9f69dd4;p=lhc%2Fansible.git diff --git a/templates/nginx_paheko_common.j2 b/templates/nginx_paheko_common.j2 index 02eb52d..acaa505 100644 --- a/templates/nginx_paheko_common.j2 +++ b/templates/nginx_paheko_common.j2 @@ -1,5 +1,5 @@ -server_name {{ SITE }}.{{ DOMAIN }}.{{ TLD }}; -root /home/www/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/www; +server_name {{ config_ss_domain | default(SITE) }}.{{ DOMAIN }}.{{ TLD }}; +root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ config_ss_domain }}/www; location / { try_files $uri $uri/ /_route.php?$query_string; @@ -12,6 +12,5 @@ location ~ \.php { fastcgi_index index.php ; fastcgi_param REDIRECT_STATUS 200; fastcgi_split_path_info ^(.+\.php)(/.+)$; - - fastcgi_pass unix:/run/php{{ php_version}}/fpm/php_{{ SIGLE }}_{{ SITE }}; + fastcgi_pass unix:/run/php{{ php_version}}/fpm/php_{{ SIGLE }}_{{ config_ss_domain }}; } \ No newline at end of file