c# nginx 配置

listen 8095; #端口
server_name localhost; #域名可以有多个 用空格隔开

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root E:\; #代理项目路径
index index.html; #项目的地址
}

location /api {
proxy_pass http://127.0.0.1:8050/api;
client_max_body_size 1000m;
}

 

posted @ 2019-01-20 19:43  紅人  阅读(2261)  评论(0编辑  收藏  举报