server { {% include './templates/header.conf.j2' %} root /srv/http/analyse.nintendojo.fr/; index index.html index.htm index.php; location ~ ^/(status|ping|apc_info.php)$ { access_log off; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock; } location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { expires 2w; log_not_found off; } location ~ \.htaccess$ { deny all; } location ~ ^/tmp { deny all; } location ~ \.php$ { try_files $uri $uri/ =404; fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock; include fastcgi_params; } }