nginx.conf 819 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. user nginx;
  2. daemon off;
  3. worker_processes auto;
  4. pcre_jit on;
  5. #error_log /var/log/nginx/error.log warn;
  6. error_log /dev/stderr warn;
  7. pid /run/nginx.pid;
  8. events {
  9. worker_connections 1024;
  10. }
  11. http {
  12. include /etc/nginx/mime.types;
  13. default_type application/octet-stream;
  14. server_tokens off;
  15. client_max_body_size 1m;
  16. keepalive_timeout 65;
  17. sendfile on;
  18. tcp_nodelay on;
  19. ssl_prefer_server_ciphers on;
  20. ssl_session_cache shared:SSL:2m;
  21. gzip_vary on;
  22. log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  23. '$status $body_bytes_sent "$http_referer" '
  24. '"$http_user_agent" "$http_x_forwarded_for"';
  25. access_log /dev/stdout main;
  26. server {
  27. listen 80 default_server;
  28. listen [::]:80 default_server ipv6only=on;
  29. location / {
  30. root /srv/www/;
  31. }
  32. }
  33. }