From ed46b34cd4c1619965f195a1bbb1e48b23b1a91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=84=E6=B7=B1=E5=B0=8F=E7=99=BD=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=8C=BF?= Date: Wed, 29 Jan 2025 18:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E8=BF=87apache?= =?UTF-8?q?=E5=8F=8D=E4=BB=A3=E6=8C=82=E8=BD=BD=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?webdav=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E9=87=8D=E5=91=BD?= =?UTF-8?q?=E5=90=8D/=E7=A7=BB=E5=8A=A8=E6=93=8D=E4=BD=9C=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#407)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update reverse-proxy.md * Update reverse-proxy.md * Update reverse-proxy.md --- docs/guide/install/reverse-proxy.md | 4 +++- docs/zh/guide/install/reverse-proxy.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guide/install/reverse-proxy.md b/docs/guide/install/reverse-proxy.md index 471880f2b..b22b5e863 100644 --- a/docs/guide/install/reverse-proxy.md +++ b/docs/guide/install/reverse-proxy.md @@ -67,7 +67,9 @@ Add the anti-generation configuration item ProxyPass under the VirtualHost field DocumentRoot /www/myapp/public AllowEncodedSlashes NoDecode + ProxyPreserveHost On ProxyPass "/" "http://127.0.0.1:5244/" nocanon + ProxyPassReverse "/" "http://127.0.0.1:5244/" nocanon ``` @@ -99,4 +101,4 @@ Add the reverse_proxy configuration item reverse_proxy under the Caddyfile file, ![bt_reverse_proxy](/img/guide/reverse_proxy/bt_reverse_proxy.png) -> If you need to apply for an `SSL certificate`, you can first apply for the certificate in the `SSL` option, and then set up the reverse proxy. Alternatively, you can set up the reverse proxy first, disable the proxy function, apply for an `SSL` certificate, and then enable the proxy again. \ No newline at end of file +> If you need to apply for an `SSL certificate`, you can first apply for the certificate in the `SSL` option, and then set up the reverse proxy. Alternatively, you can set up the reverse proxy first, disable the proxy function, apply for an `SSL` certificate, and then enable the proxy again. diff --git a/docs/zh/guide/install/reverse-proxy.md b/docs/zh/guide/install/reverse-proxy.md index c06da5e1c..98d3fd403 100644 --- a/docs/zh/guide/install/reverse-proxy.md +++ b/docs/zh/guide/install/reverse-proxy.md @@ -84,7 +84,9 @@ proxy_max_temp_file_size 0; #加上这一行 DocumentRoot /www/myapp/public AllowEncodedSlashes NoDecode + ProxyPreserveHost On ProxyPass "/" "http://127.0.0.1:5244/" nocanon + ProxyPassReverse "/" "http://127.0.0.1:5244/" nocanon ```