correction syntaxe
[lhc/ansible.git] / templates / nginx_paheko_common.j2
1 server_name {{ config_ss_domain }}.{{ DOMAIN }}.{{ TLD }};
2 root /home/sites/data/{{ TLD }}/{{ DOMAIN }}/{{ SITE }}/www;
3
4 location / {
5 try_files $uri $uri/ /_route.php?$query_string;
6 index index.php /_route.php;
7 }
8
9 location ~ \.php {
10 try_files $uri $uri/ /_route.php?$query_string;
11 include /etc/nginx/conf.d/fastcgi.conf;
12 fastcgi_index index.php ;
13 fastcgi_param REDIRECT_STATUS 200;
14 fastcgi_split_path_info ^(.+\.php)(/.+)$;
15 fastcgi_pass unix:/run/php{{ php_version}}/fpm/php_{{ SIGLE }}_{{ SITE }};
16 }