diff --git a/glpi/default.conf.template b/glpi/default.conf.template new file mode 100644 index 0000000..95e8e44 --- /dev/null +++ b/glpi/default.conf.template @@ -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; + } +} \ No newline at end of file