nginx.conf 1.6 KB

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