client_body_temp_path /tmp/client_temp; proxy_temp_path /tmp/proxy_temp_path; fastcgi_temp_path /tmp/fastcgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; server { listen 80 default_server; server_name _; access_log /logs/nginx.access.log main; sendfile off; proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; root /var/www/glpi/public; index index.php index.html; # Allow fpm ping and status from localhost location ~ ^/(fpm-status|fpm-ping)$ { access_log off; allow 127.0.0.1; deny all; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } location / { try_files $uri /index.php$is_args$args; } location ~ ^/index\.php$ { fastcgi_split_path_info ^(.+\.php)(/.*)$; fastcgi_pass 127.0.0.1:9000; include fastcgi.conf; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # Deny access to . files, for security location ~ /\. { log_not_found off; deny all; } } gzip on; gzip_proxied any; gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js image/x-icon font/woff2 font/woff application/x-font-woff; gzip_disable "msie6"; etag on; if_modified_since exact; add_header Pragma "public"; add_header Cache-Control "max-age=31536000, public";