nginx.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. index index.html;
  30. autoindex on;
  31. try_files $uri $uri/ $uri.html =404;
  32. location /archive {
  33. root /var/www/archive;
  34. }
  35. }
  36. }