Nginx配置示例

server {
listen 6080;
server_name local.boheadmin;

location / {
proxy_pass http://127.0.0.1:8087;
}

location /admin {
proxy_pass http://127.0.0.1:8103/admin;
}

location /upload {
alias C:/workspace/upload/;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}


}

 

posted @ 2018-12-26 16:11  image_erfsfj  阅读(127)  评论(0编辑  收藏  举报