user www-data; worker_processes 4; error_log logs/error.log error; events {worker_connections 1024;} http { include mime.types; default_type application/octet-stream; access_log off; sendfile on; keepalive_timeout 10; send_timeout 3600; proxy_read_timeout 3600; fastcgi_read_timeout 3600; fastcgi_connect_timeout 3600; # Для предотвращения сбоя при оплате через PayPal: # «upstream sent too big header while reading response header from upstream» # "GET /store/paypal/express/return/?token=<...>&PayerID=<...> # http://stackoverflow.com/a/23845727 fastcgi_buffer_size 32k; # Этот параметр тоже нужен, иначе будет сбой: # «"fastcgi_busy_buffers_size" must be less than # the size of all "fastcgi_buffers" minus one buffer» fastcgi_buffers 16 16k; # 2015-08-18 # http://nginx.org/en/docs/http/ngx_http_gzip_module.html # http://magento-forum.ru/topic/5187/ gzip on; gzip_disable "msie6"; gzip_comp_level 6; gzip_min_length 1100; gzip_buffers 16 8k; gzip_proxied off; # По-умолчанию включено сжатие только ответов типа text/html # http://nginx.org/en/docs/http/ngx_http_gzip_module.html#gzip_types # Поэтому добавляем другие типы их перечислением. # http://stackoverflow.com/a/12644530 gzip_types text/plain text/css text/js text/xml text/javascript application/javascript application/x-javascript application/json application/xml application/xml+rss; client_max_body_size 64m; include sites/*.conf; }