nginx.conf 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # 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. }