nginx.conf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. daemon off;
  2. user www-data;
  3. worker_processes 4;
  4. pid /run/nginx.pid;
  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. client_max_body_size 50m;
  34. # gzip_vary on;
  35. # gzip_proxied any;
  36. # gzip_comp_level 6;
  37. # gzip_buffers 16 8k;
  38. # gzip_http_version 1.1;
  39. # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  40. ##
  41. # nginx-naxsi config
  42. ##
  43. # Uncomment it if you installed nginx-naxsi
  44. ##
  45. #include /etc/nginx/naxsi_core.rules;
  46. ##
  47. # nginx-passenger config
  48. ##
  49. # Uncomment it if you installed nginx-passenger
  50. ##
  51. #passenger_root /usr;
  52. #passenger_ruby /usr/bin/ruby;
  53. ##
  54. # Virtual Host Configs
  55. ##
  56. include /etc/nginx/conf.d/*.conf;
  57. include /etc/nginx/sites-enabled/*;
  58. }