nginx.conf 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. user www-data;
  2. pid /var/run/nginx.pid;
  3. worker_processes auto;
  4. timer_resolution 100ms;
  5. worker_rlimit_nofile 40000;
  6. events {
  7. worker_connections 40000;
  8. use epoll;
  9. multi_accept on;
  10. }
  11. http {
  12. sendfile on;
  13. tcp_nopush on;
  14. tcp_nodelay on;
  15. server_tokens off;
  16. send_timeout 20;
  17. keepalive_timeout 65;
  18. types_hash_max_size 2048;
  19. client_max_body_size 25m;
  20. include mime.types;
  21. default_type application/octet-stream;
  22. access_log /dev/stdout;
  23. error_log stderr;
  24. reset_timedout_connection on;
  25. server_names_hash_bucket_size 64;
  26. server {
  27. listen 80 default_server;
  28. server_name _;
  29. root /var/www;
  30. index index.html;
  31. autoindex on;
  32. try_files $uri $uri/ $uri.html =404;
  33. }
  34. }