From 6edfb560e6e060c98f1c8b9ed8ea4766f6fc744c Mon Sep 17 00:00:00 2001 From: dxin Date: Mon, 22 Dec 2025 11:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=AE=98=E7=BD=915=E4=B8=AA?= =?UTF-8?q?=E5=AD=90=E9=A1=B5=E9=9D=A2=E8=BD=AC=E5=8F=91=E5=88=B0=E6=96=B0?= =?UTF-8?q?=E5=AE=98=E7=BD=91=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/lessie_official_web.conf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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;