1. Caddy version (caddy version
):
2.4.5
2. How I run Caddy:
a. System environment:
Windows 10 x64 v21H1
b. Command:
caddy_windows_amd64.exe run
c. Service/unit/compose file:
Paste full file contents here.
Make sure backticks stay on their own lines,
and the post looks nice in the preview pane.
d. My complete Caddyfile or JSON config:
{
log caddy-log {
output file caddy.log {
roll_size 10MiB
roll_keep 5
roll_keep_for 2160h
}
}
default_sni thedomain.com
#debug
}
http:// {
respond "why you here?"
}
web.thedomain.com:8443 {
reverse_proxy :81
tls {
protocols tls1.2
}
header / Strict-Transport-Security "max-age=63072000"
}
media.thedomain.com:8443 {
reverse_proxy :8096
tls {
protocols tls1.2
}
header / Strict-Transport-Security "max-age=63072000"
}
# local filebrowser test
:82 {
reverse_proxy :8080
}
# local HFS test
:83 {
reverse_proxy :81
}
3. The problem I’m having:
This is an intermittent error. From the Internet, I login to my file server app via web browser, browse to subfolder “UL”, then try to upload a file. The upload appears to start but no data is transferred (like it is stuck), no errors shown in the app. Caddy issues an error.
4. Error messages and/or full log output:
http.log.error readfrom tcp 127.0.0.1:53845->127.0.0.1:81: client disconnected {“request”: {“remote_addr”: “139.xyz.xyz.45:10400”, “proto”: “HTTP/2.0”, “method”: “POST”, “host”: “web.thedomain.com”, “uri”: “/UL/”, “headers”: {“Accept-Encoding”: [“gzip, deflate, br”], “Origin”: [“https://web.thedomain.com”], “Sec-Fetch-Mode”: [“navigate”], “Sec-Fetch-User”: ["?1"], “User-Agent”: [“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) Gecko/20100101 Firefox/94.0”], “Accept-Language”: [“en-US,en;q=0.5”], “Referer”: [“https://web.thedomain.com/UL/”], “Upgrade-Insecure-Requests”: [“1”], “Sec-Fetch-Dest”: [“document”], “Sec-Fetch-Site”: [“same-origin”], “Accept”: [“text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8”], “Content-Type”: [“multipart/form-data; boundary=---------------------------352751372540989882361939689133”], “Authorization”: [“Basic dWw6dGlnZXIhdXBsb2FkMDAuLg==”], “Cookie”: [“HFS_SID_=0.170372180873528”], “Te”: [“trailers”], “Content-Length”: [“5457802169”], “Dnt”: [“1”]}, “tls”: {“resumed”: false, “version”: 772, “cipher_suite”: 4865, “proto”: “h2”, “proto_mutual”: true, “server_name”: “web.thedomain.com”}}, “duration”: 20.3282403, “status”: 502, “err_id”: “frd8dqdzw”, “err_trace”: “reverseproxy.statusError (reverseproxy.go:858)”}
5. What I already tried:
Nothing.