Files
hosting/etc/nginx/snippets/fastcgi-php.conf
Daniel Winzen 49a5b187b0 Increase buffer to get rid of errors on large response headers (e.g. cookies)
upstream sent too big header while reading response header
2018-04-22 15:07:00 +02:00

21 lines
555 B
Plaintext

# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;
# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_read_timeout 30m;
#fastcgi_read_timeout 600s;
fastcgi_max_temp_file_size 0;
fastcgi_buffer_size 8K;
fastcgi_buffers 32 8k;