server {
listen 80;
server_name www.ningli.win ningli.win;
location / {
root /web/node/blogNew/blogHtml;
try_files $uri /index.html; //所有页面返回index.html
#index index.html;
}
location /api/ {
proxy_pass http://localhost:4000/;
}
}
api反向代理