1. Caddy version (caddy version
):
v2.2.1 h1:Q62GWHMtztnvyRU+KPOpw6fNfeCD3SkwH7SfT1Tgt2c=
2. How I run Caddy:
Run directly with a Caddyfile.
a. System environment:
Mac 10.15.7, command line.
b. Command:
./caddy_darwin_amd64_custom run
c. Service/unit/compose file:
paste full file contents here
d. My complete Caddyfile or JSON config:
localhost
root * .
route {
webdav {
}
file_server
}
3. The problem I’m having:
Using Edge browser, https://localhost works fine, returning back the webdav XML files. However, use curl -I to access the same URL (and test HEAD request for sure), it returns 405 Method Not Allowed.
4. Error messages and/or full log output:
HTTP/1.1 405 Method Not Allowed
Server: Caddy
Date: Fri, 18 Dec 2020 12:59:05 GMT
5. What I already tried:
Tried HTTPS, HTTP with verified Caddyfile chages (verified by basic GET requests from browsers), but HEAD request always returns 405.