From 643e2c4f82c45b2698c813e119d108cbc64ea0e7 Mon Sep 17 00:00:00 2001 From: zhanghongqing Date: Thu, 9 Sep 2021 14:07:24 +0800 Subject: [PATCH] =?UTF-8?q?21.09=20=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TSG发布版本更新记录/TSG-21.09/Nginx/nginx.conf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/TSG发布版本更新记录/TSG-21.09/Nginx/nginx.conf b/TSG发布版本更新记录/TSG-21.09/Nginx/nginx.conf index 1ea6db0..4a6207b 100644 --- a/TSG发布版本更新记录/TSG-21.09/Nginx/nginx.conf +++ b/TSG发布版本更新记录/TSG-21.09/Nginx/nginx.conf @@ -68,12 +68,17 @@ http { server { listen 9098; server_name localhost; - if ($request_method = GET) { - return 302 https://$host:9097$request_uri; - } proxy_set_header Host $http_host; - location / { - proxy_pass http://hos; + + location /admin { + proxy_pass http://hos/admin; + } + + location /hos { + if ($request_method = GET) { + return 302 https://$host:9097$request_uri; + } + proxy_pass http://hos/hos; } }