diff --git a/nginx/lessie_official_web.conf b/nginx/lessie_official_web.conf index 43fda5e..cf92423 100644 --- a/nginx/lessie_official_web.conf +++ b/nginx/lessie_official_web.conf @@ -3,6 +3,11 @@ upstream official_backend { server 10.0.0.15:3000; # 机器B的内网地址 } +upstream newofficial_backend { + server 10.0.0.5:3003; # 机器A的内网地址 + server 10.0.0.15:3003; # 机器B的内网地址 +} + log_format official_log '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent" ' @@ -50,7 +55,15 @@ server { error_log /data/tengine/logs/lessie.ai.error.log; - # 反向代理到后端服务器渲染的nxut项目3000端口 + # 反向代理到后端服务器渲染的nxut项目端口(新框架的几个页面) + location ~ ^/(influencer-marketing|b2b-lead-generation|investor-scouting|recruiting|partnerships) { + proxy_pass http://new_official_backend; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + } + + + # 反向代理到后端服务器渲染的nxut项目3000端口(老框架的完整页面) location / { proxy_pass http://official_backend; proxy_set_header Host $host;