location / {
root D:\\nginx-1.24.0\\html\\dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:9001;
}
标签:index,set,header,windows,nginx,html,部署,proxy From: https://www.cnblogs.com/daofree/p/17617701.html