worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 8006; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } location /pic { alias E:/data/pic; autoindex on; } }
标签:index,log,映射,pic,access,nginx,conf,keepalive From: https://www.cnblogs.com/wenwenzuiniucha/p/16990228.html