Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 16384;
  7. multi_accept on;
  8. use epoll;
  9. }
  10. worker_rlimit_nofile 32768;
  11.  
  12. http {
  13. sendfile on;
  14. aio threads;
  15. server_tokens off;
  16. sendfile_max_chunk 32k;
  17.  
  18. tcp_nopush on;
  19. tcp_nodelay on;
  20.  
  21. client_header_timeout 12s;
  22. client_header_buffer_size 1k;
  23.  
  24. client_body_buffer_size 128K;
  25. client_body_timeout 12s;
  26.  
  27. client_max_body_size 1m;
  28. large_client_header_buffers 4 4k;
  29.  
  30. open_file_cache max=32768 inactive=20s;
  31. open_file_cache_valid 30s;
  32. open_file_cache_min_uses 2;
  33. open_file_cache_errors on;
  34.  
  35. keepalive_timeout 15s;
  36. keepalive_requests 100;
  37.  
  38. reset_timedout_connection on;
  39. send_timeout 10s;
  40.  
  41. types_hash_max_size 2048;
  42. server_names_hash_max_size 2048;
  43. variables_hash_max_size 2048;
  44.  
  45. include /etc/nginx/mime.types;
  46. default_type application/octet-stream;
  47.  
  48. access_log off;
  49. error_log /var/log/nginx/error.log crit;
  50.  
  51. expires max;
  52.  
  53. charset UTF-8;
  54.  
  55. gzip on;
  56. gzip_min_length 10240;
  57. gzip_disable msie6;
  58. gzip_vary on;
  59. gzip_proxied any;
  60. gzip_comp_level 3;
  61. gzip_http_version 1.1;
  62. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml applicat$
  63.  
  64. fastcgi_ignore_client_abort on;
  65. fastcgi_send_timeout 10s;
  66. fastcgi_pass_header Cookie;
  67. fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
  68. fastcgi_cache_key $scheme$request_method$http_if_modified_since$http_if_none_match$host$request_uri;
  69. fastcgi_cache_path /var/cache/nginx/ levels=1:2 keys_zone=fastcgi_cache:1m max_size=128m inactive=1h;
  70.  
  71. limit_req_zone $binary_remote_addr zone=limit_req:64m rate=2r/s;
  72. limit_req_status 403;
  73.  
  74. include /etc/nginx/conf.d/*.conf;
  75. include /etc/nginx/sites-enabled/*;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement