nginx.conf 1.6 KB

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