From 369df2e8ce31dcf485d5ae36fdbc52dfa6a05484 Mon Sep 17 00:00:00 2001 From: "1249648969@qq.com" <123456789@qq.com> Date: Thu, 30 Dec 2021 15:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnginx=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vhost/template/nginx/java_http.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhost/template/nginx/java_http.conf b/vhost/template/nginx/java_http.conf index 3c37e013..23abfdad 100644 --- a/vhost/template/nginx/java_http.conf +++ b/vhost/template/nginx/java_http.conf @@ -35,7 +35,7 @@ server proxy_cache_purge cache_one {host}$request_uri$is_args$args; }} - location ~^{api_url} {{ + location {api_url} {{ proxy_pass {url}; proxy_set_header Host {host}; proxy_set_header X-Real-IP $remote_addr;