Guest User

Untitled

a guest
Oct 13th, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. user www www;
  2. worker_processes 24;
  3. worker_rlimit_nofile 900000; #2 filehandlers for each connection
  4. error_log /var/log/nginx-error.log warn;
  5. #pid logs/nginx.pid;
  6.  
  7. events {
  8. worker_connections 16000;
  9. multi_accept on;
  10. use kqueue;
  11. }
  12.  
  13. http {
  14. include mime.types;
  15. default_type application/octet-stream;
  16. add_header X-XSS-Protection "1; mode=block";
  17. keepalive_requests 200;
  18. client_max_body_size 4096M;
  19. client_body_buffer_size 4096M;
  20. output_buffers 1 512k;
  21. sendfile_max_chunk 128k;
  22.  
  23. fastcgi_connect_timeout 90s;
  24. fastcgi_send_timeout 90s;
  25. fastcgi_read_timeout 500s;
  26. proxy_read_timeout 90s;
  27. fastcgi_buffer_size 64k;
  28. fastcgi_buffers 16 64k;
  29. fastcgi_temp_file_write_size 256k;
  30.  
  31. open_file_cache max=10000 inactive=999s;
  32. open_file_cache_valid 60s;
  33. open_file_cache_min_uses 2;
  34. open_file_cache_errors on;
  35.  
  36. server_tokens off; #Conceals nginx version
  37. access_log off;
  38. aio on;
  39. sendfile off;
  40. tcp_nodelay on;
  41.  
  42. client_header_timeout 90s;
  43. client_body_timeout 90s;
  44. send_timeout 90s;
  45. keepalive_timeout 15s;
  46.  
  47. ssl_session_cache shared:SSL:10m;
  48. ssl_session_timeout 10m;
  49.  
  50. reset_timedout_connection on;
  51. gzip off;
  52. gzip_vary on;
  53. gzip_disable "MSIE [1-6]\.";
  54. gzip_proxied any;
  55. gzip_http_version 1.0;
  56. gzip_min_length 1280;
  57. gzip_comp_level 6;
  58. gzip_buffers 16 8k;
  59. gzip_types text/plain text/xml text/css application/x-javascript image/png image/x-icon image/gif image/jpeg image/jpg application/xml
  60. application/xml+rss text/javascr ipt application/atom+xml;
  61. include /usr/local/etc/nginx/vhosts/*.conf;
  62.  
  63. }
Add Comment
Please, Sign In to add comment