Skip to content

Commit ed46b34

Browse files
authored
修复通过apache反代挂载导致的webdav无法进行重命名/移动操作问题 (#407)
* Update reverse-proxy.md * Update reverse-proxy.md * Update reverse-proxy.md
1 parent 6edac7a commit ed46b34

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/guide/install/reverse-proxy.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ Add the anti-generation configuration item ProxyPass under the VirtualHost field
6767
DocumentRoot /www/myapp/public
6868

6969
AllowEncodedSlashes NoDecode
70+
ProxyPreserveHost On
7071
ProxyPass "/" "http://127.0.0.1:5244/" nocanon
72+
ProxyPassReverse "/" "http://127.0.0.1:5244/" nocanon
7173
</VirtualHost>
7274
```
7375

@@ -99,4 +101,4 @@ Add the reverse_proxy configuration item reverse_proxy under the Caddyfile file,
99101

100102
![bt_reverse_proxy](/img/guide/reverse_proxy/bt_reverse_proxy.png)
101103

102-
> 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.
104+
> 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.

docs/zh/guide/install/reverse-proxy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ proxy_max_temp_file_size 0; #加上这一行
8484
DocumentRoot /www/myapp/public
8585

8686
AllowEncodedSlashes NoDecode
87+
ProxyPreserveHost On
8788
ProxyPass "/" "http://127.0.0.1:5244/" nocanon
89+
ProxyPassReverse "/" "http://127.0.0.1:5244/" nocanon
8890
</VirtualHost>
8991
```
9092

0 commit comments

Comments
 (0)