From 483aca52c96ca0c6ecf4c1e5d0d51f82ddda68e3 Mon Sep 17 00:00:00 2001 From: Tobin Date: Sat, 26 Oct 2024 08:45:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=AD=90=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=8F=8D=E5=90=91=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除proxy_pass的/alist路径,路径是被代理服务器使用,alist服务作为源就不需要添加 --- docs/zh/faq/howto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/faq/howto.md b/docs/zh/faq/howto.md index b3a1eda14..057db2c64 100644 --- a/docs/zh/faq/howto.md +++ b/docs/zh/faq/howto.md @@ -39,7 +39,7 @@ location /alist/ { proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; - proxy_pass http://127.0.0.1:5244/alist; + proxy_pass http://127.0.0.1:5244; # the max size of file to upload client_max_body_size 20000m; } From b9acdf1599b503785df1c5ea7a91d14d4692a464 Mon Sep 17 00:00:00 2001 From: Tobin Date: Sat, 26 Oct 2024 08:49:07 +0800 Subject: [PATCH 2/2] update reverse proxy with sub directory remove /alist path in proxy_pass, the proxy server would use it, not the alist source server --- docs/faq/howto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq/howto.md b/docs/faq/howto.md index 5067d2870..43e185a3b 100644 --- a/docs/faq/howto.md +++ b/docs/faq/howto.md @@ -38,7 +38,7 @@ location /alist/ { proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; - proxy_pass http://127.0.0.1:5244/alist; + proxy_pass http://127.0.0.1:5244; # the max size of file to upload client_max_body_size 20000m; }