nginx配置conf(转发+文件映射)

 

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;
}







}

 

posted @ 2022-12-18 13:06  傲云萧雨  阅读(207)  评论(0编辑  收藏  举报