Advertisement
Guest User

Untitled

a guest
Apr 18th, 2011
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. user nginx;
  2. worker_processes 2;
  3. worker_rlimit_nofile 100000;
  4. error_log /var/log/nginx/error.log;
  5. pid /var/run/nginx.pid;
  6.  
  7.  
  8. events {
  9. worker_connections 4096;
  10. use epoll;
  11. }
  12.  
  13. http {
  14. include /etc/nginx/mime.types;
  15. default_type application/octet-stream;
  16. server_tokens off;
  17. client_max_body_size 5M;
  18. client_body_buffer_size 2M;
  19. client_body_in_single_buffer on;
  20. client_header_buffer_size 64k;
  21. large_client_header_buffers 8 64k;
  22. open_file_cache max=1000 inactive=7200s;
  23. fastcgi_connect_timeout 60;
  24. fastcgi_send_timeout 180;
  25. fastcgi_read_timeout 180;
  26. fastcgi_buffer_size 128k;
  27. fastcgi_buffers 32 256k;
  28. fastcgi_busy_buffers_size 256k;
  29. fastcgi_temp_file_write_size 256k;
  30. fastcgi_intercept_errors on;
  31.  
  32. gzip on;
  33. gzip_types text/plain application/xml text/css text/javascript;
  34. gzip_disable "MSIE [1-6]\.";
  35. gzip_buffers 12 8M;
  36.  
  37. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  38. '$status $body_bytes_sent "$http_referer" '
  39. '"$http_user_agent" "$http_x_forwarded_for"';
  40.  
  41. access_log /var/log/nginx/access.log main;
  42. sendfile on;
  43. #tcp_nopush on;
  44.  
  45. keepalive_timeout 65;
  46.  
  47. include /etc/nginx/conf.d/*.conf;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement