user nobody; worker_processes 8; error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; worker_rlimit_nofile 204800; events { # use epoll; # accept_mutex_delay 50ms; worker_connections 102400; } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr $host $remote_user [$time_local] "$request" ' log_format main '$remote_addr $host $request_time [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; log_format log404 '$status $body_bytes_sent [$time_local] $remote_addr $host$request_uri $sent_http_location'; access_log logs/access.log main; server_tokens off; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 5; server_names_hash_bucket_size 128; large_client_header_buffers 4 8k; output_buffers 1 16k; client_header_buffer_size 1k; client_max_body_size 100m; client_body_buffer_size 16k; #client_body_temp_path "/data/tmp/nginx/client_body_temp"; #fastcgi_temp_path "/data/tmp/nginx/fastcgi_temp"; #proxy_temp_path "/data/tmp/nginx/proxy_temp"; proxy_connect_timeout 60; proxy_send_timeout 300; proxy_read_timeout 300; proxy_buffer_size 256k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; proxy_temp_file_write_size 256k; proxy_next_upstream error timeout invalid_header http_500 http_503; proxy_max_temp_file_size 128m; proxy_buffering off; proxy_http_version 1.1; fastcgi_connect_timeout 60; fastcgi_send_timeout 120; fastcgi_read_timeout 120; fastcgi_buffer_size 256k; fastcgi_buffers 4 256k; fastcgi_busy_buffers_size 256k; fastcgi_temp_file_write_size 256k; fastcgi_next_upstream error timeout invalid_header http_500 http_503; fastcgi_max_temp_file_size 128m; gzip on; gzip_min_length 1000; gzip_buffers 4 8k; #gzip_proxied expired no-cache no-store private auth; #gzip_proxied any; gzip_proxied off; gzip_types text/plain application/x-javascript text/css application/xml; include server.conf; }