Guest User

Untitled

a guest
Jan 22nd, 2012
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. user www-data;
  2. worker_processes 8;
  3. pid /var/run/nginx.pid;
  4.  
  5. events {
  6. worker_connections 6096;
  7. multi_accept on;
  8. }
  9.  
  10. http {
  11. sendfile on;
  12. tcp_nopush on;
  13. tcp_nodelay on;
  14. keepalive_timeout 2;
  15. types_hash_max_size 2048;
  16. server_tokens off;
  17.  
  18. include /etc/nginx/mime.types;
  19. default_type application/octet-stream;
  20. client_max_body_size 4m;
  21.  
  22. access_log /var/log/nginx/access.log;
  23. error_log /var/log/nginx/error.log;
  24.  
  25. gzip on;
  26. gzip_disable "msie6";
  27.  
  28. gzip_buffers 16 8k;
  29. gzip_http_version 1.1;
  30. gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  31.  
  32. limit_req_zone $binary_remote_addr zone=one:20m rate=1r/s;
  33. limit_rate 10m;
  34. limit_zone slimits $binary_remote_addr 20m;
  35. limit_conn slimits 3;
  36.  
  37.  
  38. include /etc/nginx/conf.d/*.conf;
  39. include /etc/nginx/sites-enabled/*;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment