nginx.conf

#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;

#access_log logs/access.log main;
access_log off;

keepalive_requests 5120;
keepalive_timeout 120;

gzip on;
gzip_min_length 10k;
gzip_types text/plain text/css application/x-javascript application/xml application/json;

client_max_body_size 500m;
client_body_buffer_size 256k;
client_header_timeout 1m;
client_body_timeout 1m;
client_header_buffer_size 16k;
large_client_header_buffers 4 64k;

send_timeout 1m;

proxy_connect_timeout 180;
proxy_read_timeout 180;
proxy_send_timeout 180;
proxy_buffers 4 64k;
proxy_buffer_size 64k;

include sites/*.conf;
}

发表评论

邮箱地址不会被公开。 必填项已用*标注