Ajouter glpi/default.conf.template

This commit is contained in:
dimitri 2025-06-09 23:22:05 +02:00
parent f7239d85c9
commit 8bbaa510c3

View file

@ -0,0 +1,26 @@
server {
listen 80;
server_name ${GLPI_FQDN};
root /var/www/html;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param DOCUMENT_ROOT $document_root;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires max;
log_not_found off;
}
}