nginx.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. user www-data;
  2. worker_processes 4;
  3. pid /run/nginx.pid;
  4. events {
  5. worker_connections 768;
  6. # multi_accept on;
  7. }
  8. http {
  9. ##
  10. # Basic Settings
  11. ##
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. keepalive_timeout 65;
  16. types_hash_max_size 2048;
  17. # proxy_connect_timeout 60;
  18. # proxy_send_timeout 60;
  19. # proxy_read_timeout 60; # Usually hit when RPCs to DWs are slow
  20. # send_timeout 60;
  21. # server_tokens off;
  22. # server_names_hash_bucket_size 64;
  23. # server_name_in_redirect off;
  24. include /etc/nginx/mime.types;
  25. default_type application/octet-stream;
  26. ##
  27. # Logging Settings
  28. ##
  29. access_log /var/log/nginx/access.log;
  30. error_log /var/log/nginx/error.log;
  31. ##
  32. # Gzip Settings
  33. ##
  34. gzip on;
  35. gzip_disable "msie6";
  36. # gzip_vary on;
  37. # gzip_proxied any;
  38. # gzip_comp_level 6;
  39. # gzip_buffers 16 8k;
  40. # gzip_http_version 1.1;
  41. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  42. ##
  43. # nginx-naxsi config
  44. ##
  45. # Uncomment it if you installed nginx-naxsi
  46. ##
  47. #include /etc/nginx/naxsi_core.rules;
  48. ##
  49. # nginx-passenger config
  50. ##
  51. # Uncomment it if you installed nginx-passenger
  52. ##
  53. #passenger_root /usr;
  54. #passenger_ruby /usr/bin/ruby;
  55. ##
  56. # Virtual Host Configs
  57. ##
  58. include /etc/nginx/conf.d/*.conf;
  59. include /etc/nginx/sites-enabled/*;
  60. }
  61. #mail {
  62. # # See sample authentication script at:
  63. # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
  64. #
  65. # # auth_http localhost/auth.php;
  66. # # pop3_capabilities "TOP" "USER";
  67. # # imap_capabilities "IMAP4rev1" "UIDPLUS";
  68. #
  69. # server {
  70. # listen localhost:110;
  71. # protocol pop3;
  72. # proxy on;
  73. # }
  74. #
  75. # server {
  76. # listen localhost:143;
  77. # protocol imap;
  78. # proxy on;
  79. # }
  80. #}