有三个系统, 需要捆绑在一起提供服务,一个 ip ,根据 url 来区分
当前的场景
三个机器,三个 nginx ,分别配置了这样的三个服务
location / { root /data/dist; try_files $uri $uri/ /index.html;
} location /api {
client_max_body_size 1000m; proxy_pass http://127.0.0.1:1111/api/; proxy_read_timeout 1200;
}
现在需要,捆绑到一个 ip 中去。
http://10.10.10.10/index ,会作为首页
http://10.10.10.10/aaa ,会作为 a 系统的入口
http://10.10.10.10/bbb ,会作为 b 系统的入口
http://10.10.10.10/ccc ,会作为 c 系统的入口
同时希望后端改造越少越好,通过 nginx 是否可以不改后端,同时支持。