Skip to content

Commit 8446f9b

Browse files
committed
docs: add nginx note about copy/move
1 parent 5226853 commit 8446f9b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ location / {
193193
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
194194
proxy_set_header Host $host;
195195
proxy_redirect off;
196+
197+
# Ensure COPY and MOVE commands work. Change https://example.com to the
198+
# correct address where the WebDAV server will be deployed at.
199+
set $dest $http_destination;
200+
if ($http_destination ~ "^https://example.com(?<path>(.+))") {
201+
set $dest /$path;
202+
}
203+
proxy_set_header Destination $dest;
196204
}
197205
```
198206

0 commit comments

Comments
 (0)