Advertisement
Guest User

Untitled

a guest
Dec 29th, 2012
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. user nobody;
  2. # no need for more workers in the proxy mode
  3. worker_processes 2;
  4. error_log /var/log/nginx/error.log info;
  5. worker_rlimit_nofile 20480;
  6. events {
  7. worker_connections 5120; # increase for busier servers
  8. use epoll; # you should use epoll here for Linux kernels 2.6.x
  9. }
  10. http {
  11. server_name_in_redirect off;
  12. server_names_hash_max_size 20240;
  13. server_names_hash_bucket_size 2024;
  14. include mime.types;
  15. default_type application/octet-stream;
  16. server_tokens off;
  17. disable_symlinks if_not_owner;
  18. sendfile on;
  19. tcp_nopush on;
  20. tcp_nodelay on;
  21. keepalive_timeout 10;
  22. gzip on;
  23. gzip_vary on;
  24. gzip_disable "MSIE [1-6]\.";
  25. gzip_proxied any;
  26. gzip_http_version 1.1;
  27. gzip_min_length 2000;
  28. gzip_comp_level 8;
  29. gzip_buffers 32 8k;
  30. # You can remove image/png image/x-icon image/gif image/jpeg if you have slow CPU
  31. gzip_types text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml;
  32. ignore_invalid_headers on;
  33. client_header_timeout 15m;
  34. client_body_timeout 15m;
  35. send_timeout 15m;
  36. reset_timedout_connection on;
  37. connection_pool_size 512;
  38. client_header_buffer_size 512k;
  39. large_client_header_buffers 4 512k;
  40. client_max_body_size 200M;
  41. client_body_buffer_size 512k;
  42. request_pool_size 32k;
  43. output_buffers 9 132k;
  44. postpone_output 2300;
  45. proxy_temp_path /tmp/nginx_proxy/;
  46. client_body_in_file_only on;
  47. log_format bytes_log "$msec $bytes_sent .";
  48. include "/etc/nginx/vhosts/*";
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement