一、Tomcat部署架构
演进
二、Nginx部署架构
配置nginx
tomcat api接口域名访问配置:
upstream api.callbin.cn {
server 172.17.40.111:8088;
}
server{
listen 80;
server_name api.callbin.cn;
location ~ {
proxy_pass http://api.callbin.cn;
}
}
前端页面配置
server {
listen 80;
server_name shop.callbin.cn;
location / {
root /home/websit/fooide-shop;
index index.html;
}
}
三、Nginx高可用 HA