server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/{{ scope }}/projectsend/current;
index index.php;
server_name _;
{% if gzip %}
include /etc/nginx/snippets/gzip.conf;
{% endif %}
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;
error_log /var/log/nginx/projectsend_{{ scope }}_error.log;
access_log /var/log/nginx/projectsend_{{ scope }}_access.log;