Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user www www;
- worker_processes 24;
- worker_rlimit_nofile 900000; #2 filehandlers for each connection
- error_log /var/log/nginx-error.log warn;
- #pid logs/nginx.pid;
- events {
- worker_connections 16000;
- multi_accept on;
- use kqueue;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- add_header X-XSS-Protection "1; mode=block";
- keepalive_requests 200;
- client_max_body_size 4096M;
- client_body_buffer_size 4096M;
- output_buffers 1 512k;
- sendfile_max_chunk 128k;
- fastcgi_connect_timeout 90s;
- fastcgi_send_timeout 90s;
- fastcgi_read_timeout 500s;
- proxy_read_timeout 90s;
- fastcgi_buffer_size 64k;
- fastcgi_buffers 16 64k;
- fastcgi_temp_file_write_size 256k;
- open_file_cache max=10000 inactive=999s;
- open_file_cache_valid 60s;
- open_file_cache_min_uses 2;
- open_file_cache_errors on;
- server_tokens off; #Conceals nginx version
- access_log off;
- aio on;
- sendfile off;
- tcp_nodelay on;
- client_header_timeout 90s;
- client_body_timeout 90s;
- send_timeout 90s;
- keepalive_timeout 15s;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 10m;
- reset_timedout_connection on;
- gzip off;
- gzip_vary on;
- gzip_disable "MSIE [1-6]\.";
- gzip_proxied any;
- gzip_http_version 1.0;
- gzip_min_length 1280;
- gzip_comp_level 6;
- gzip_buffers 16 8k;
- gzip_types text/plain text/xml text/css application/x-javascript image/png image/x-icon image/gif image/jpeg image/jpg application/xml
- application/xml+rss text/javascr ipt application/atom+xml;
- include /usr/local/etc/nginx/vhosts/*.conf;
- }
Add Comment
Please, Sign In to add comment