Microsoft webdav doesn't work

1. The problem I’m having:

Can’t get microsoft webdav to work.
It works internal with 192.168.0.217:4433/webdav/
I have tried different combinations in the caddyfile
like Redir
So if anyone can show tell me what i need to do in the caddyfile that would be great.

I have also read that caddy can be a webdav server on it’s own,
But i can’t get to work either.
Something with the password

2. Error messages and/or full log output:

2024/12/16 12:43:53.608 ERROR   http.log.error  dial tcp: lookup webdav/: no such host  {"request": {"remote_ip": "My IP", "remote_port": "61317", "client_ip": "My IP", "proto": "HTTP/2.0", "method": "GET", "host": "MYWEBSITE", "uri": "/sw.js", "headers": {"Sec-Fetch-Site": ["same-origin"], "Sec-Fetch-Dest": ["serviceworker"], "Cookie": ["REDACTED"], "Accept-Language": ["nl-NL,nl;q=0.9,en-US;q=0.8,en;q=0.7"], "Priority": ["u=4, i"], "Cache-Control": ["max-age=0"], "Accept": ["*/*"], "Service-Worker": ["script"], "Sec-Fetch-Mode": ["same-origin"], "Referer": ["https:/(http://wiedaarfotos.hopto.org)/sw.js"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"], "Accept-Encoding": ["gzip, deflate, br"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "[MYWEBSITE](http://wiedaarfotos.hopto.org)"}}, "duration": 0.0045364, "status": 502, "err_id": "cg0fk5s4z", "err_trace": "reverseproxy.statusError (reverseproxy.go:1269)"}

3. Caddy version:

v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=

4. How I installed and ran Caddy:

It starts with windows 11
caddy.exe run

a. System environment:

Windows 11 24H2

b. Command:

caddy run

c. Service/unit/compose file:


d. My complete Caddy config:

}

wiedaarfotos.hopto.org {
	reverse_proxy 192.168.0.217:4433/webdav/
}

5. Links to relevant resources:

reverse_proxy only takes upstream addresses, i.e. host:port, with an optional scheme for transport shortcuts. See reverse_proxy (Caddyfile directive) — Caddy Documentation.

If you need to perform a path rewrite, use the rewrite directive (e.g. to prepend a path before proxying).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.