nginx.conf 771 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  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. types_hash_max_size 2048;
  16. # server_tokens off;
  17. # server_names_hash_bucket_size 64;
  18. # server_name_in_redirect off;
  19. include /etc/nginx/mime.types;
  20. default_type application/octet-stream;
  21. ##
  22. # Logging Settings
  23. ##
  24. access_log /dev/stdout;
  25. error_log /dev/stdout;
  26. ##
  27. # Gzip Settings
  28. ##
  29. gzip on;
  30. server {
  31. listen 80;
  32. root /static;
  33. server_name localhost;
  34. location ^/static {
  35. try_files $uri $uri/ =404;
  36. }
  37. }
  38. }