windows下nginx配置webapi代理
发布日期:2024-06-18 10:33:26
location / {#root html;
root html/spa;
index index.html index.htm;
}
location /api/cqsb/ {
proxy_pass http://x.x.x.x:8080; # 替换为你的WebAPI服务器地址
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}