1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Ansible_Project/roles/nginx/templates/vhost.conf
2022-05-02 17:37:08 +02:00

26 lines
820 B
Text

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;
}