Advertisement
apurvasukant

nginx.conf

Oct 19th, 2012
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. user www-data;
  2. worker_processes 4;
  3. error_log /var/log/nginx/error.log warn;
  4. pid /var/run/nginx.pid;
  5.  
  6. worker_rlimit_nofile 30000;
  7.  
  8. events {
  9. worker_connections 4096;
  10. multi_accept on;
  11. use epoll;
  12. }
  13.  
  14.  
  15. http {
  16. include /etc/nginx/mime.types;
  17. default_type application/octet-stream;
  18. server_tokens off;
  19.  
  20. client_max_body_size 700M;
  21. sendfile on;
  22. tcp_nopush on;
  23.  
  24. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  25. # '$status $body_bytes_sent "$http_referer" '
  26. # '"$http_user_agent" "$http_x_forwarded_for"';
  27.  
  28. #access_log /var/log/nginx/access.log main;
  29.  
  30. #buffers
  31. #client_body_in_single_buffer on;
  32. #client_body_buffer_size 256k;
  33. #large_client_header_buffers 4 8k;
  34. #fastcgi_buffers 256 4k;
  35.  
  36.  
  37. #timeouts
  38. #keepalive_timeout 120;
  39. #proxy_read_timeout 120;
  40. #proxy_connect_timeout 120;
  41.  
  42. #fastcgi_read_timeout 120;
  43. #fastcgi_connect_timeout 120;
  44.  
  45. #send_timeout 120;
  46. #client_header_timeout 120;
  47. #client_body_timeout 120;
  48.  
  49. #gzip
  50. gzip on;
  51. gzip_min_length 1100;
  52. gzip_buffers 4 8k;
  53.  
  54. include /etc/nginx/conf.d/*.conf;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement