Infra_docker/glpi/default.conf.template

26 lines
No EOL
687 B
Text

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