更改官网5个子页面转发到新官网框架

This commit is contained in:
dxin
2025-12-22 11:32:25 +08:00
parent 7500be1511
commit 6edfb560e6

View File

@@ -3,6 +3,11 @@ upstream official_backend {
server 10.0.0.15:3000; # 机器B的内网地址 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] ' log_format official_log '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent ' '"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" ' '"$http_referer" "$http_user_agent" '
@@ -50,7 +55,15 @@ server {
error_log /data/tengine/logs/lessie.ai.error.log; 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 / { location / {
proxy_pass http://official_backend; proxy_pass http://official_backend;
proxy_set_header Host $host; proxy_set_header Host $host;