user nginx; worker_processes 2; error_log /var/log/nginx/error.log warn; worker_rlimit_nofile 8192; events { worker_connections 8192; multi_accept on; } http { sendfile on; tcp_nopush on; tcp_nodelay on; reset_timedout_connection on; keepalive_timeout 120; keepalive_requests 1000; server_tokens off; send_timeout 15; client_body_timeout 15; client_header_timeout 15; server_names_hash_max_size 4096; client_max_body_size 10m; client_body_buffer_size 128k; include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; #access_log /var/log/nginx/access.log main; gzip on; gzip_static on; gzip_types text/plain text/xml application/xml application/x-javascript text/javascript text/css application/json text/json application/pdf application/x-font-ttf image/x-icon; gzip_comp_level 9; gzip_proxied any; gzip_min_length 1000; gzip_disable "msie6"; gzip_vary on; include /etc/nginx/conf.d/*.conf; }