Advertisement
Guest User

main conf

a guest
Aug 3rd, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. user www-data;
  2. worker_processes 1;
  3. worker_rlimit_nofile 20480;
  4.  
  5. error_log /var/log/nginx/error.log;
  6. pid /var/run/nginx.pid;
  7.  
  8. events {
  9. worker_connections 1024;
  10. # multi_accept on;
  11. }
  12.  
  13.  
  14.  
  15. http {
  16. include /etc/nginx/mime.types;
  17. #access_log off;
  18. access_log /var/log/nginx/access.log;
  19. expires 4h;
  20. sendfile on;
  21. #tcp_nopush on;
  22. upload_progress proxied 1m;
  23. ##Timeouts
  24. #keepalive_timeout 0;
  25. keepalive_timeout 65;
  26. tcp_nodelay on;
  27.  
  28. server_tokens off;
  29.  
  30.  
  31. ## Request limits
  32. limit_req_zone $binary_remote_addr zone=gulag:1m rate=60r/m;
  33.  
  34. ##Enable gzip compression
  35. gzip on;
  36. gzip_http_version 1.1;
  37. gzip_vary on;
  38. gzip_comp_level 1;
  39. gzip_proxied any;
  40. gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;gzip_buffers 16 8k;
  41. gzip_disable "MSIE [1-6]\.(?!.*SV1)";
  42.  
  43. ##blocked ips
  44. deny 70.38.32.242; #hack attempt requests
  45.  
  46.  
  47. include /etc/nginx/conf.d/*.conf;
  48. include /etc/nginx/sites-enabled/*;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement