server {
listen 8080;
server_name localhost;
location / {
root E:/proj/mis-ui/dist/;
index index.html;
try_files $uri $uri/ /index.html;
}
# if ($request_method = "OPTIONS") {
# return 204;
# }
location /prod-api/ {
# proxy_set_header Host $http_host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header REMOTE-HOST $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://abc.com/;
}
}
nginx部署vue打包后的项目
最新推荐文章于 2023-02-28 15:00:17 发布