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打包后的项目
最新推荐文章于 2024-04-28 22:34:22 发布