location / {
root html;
index index.html index.htm;
}
location /shop {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:56006/shop;
}
location /msgservice {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:56007/msgservice;
}
nginx转发多个SpringBoot项目地址
最新推荐文章于 2023-09-05 18:07:53 发布