1. My Caddy version (caddy -version
):
Caddy v1.0.3 (h1:i9gRhBgvc5ifchwWtSe7pDpsdS9+Q0Rw9oYQmYUTw1w=)
2. How I run Caddy:
a. System environment:
Windows Server 2019 Data Center Core
b. Command:
caddy -http-port 80 -https-port 443 -log stdout -agree=true -conf=Caddyfile.txt
c. Service/unit/compose file:
None
d. My complete Caddyfile:
(proxy) {
websocket
transparent
}
0.0.0.0:80 {
proxy / https://localhost:1080 {
import proxy
insecure_skip_verify
keepalive 64
}
}
3. The problem Iâm having:
If I try to access the caddy reverse proxy, it will return a â502 bad gatewayâ after authorized.
4. Error messages and/or full log output:
Oct 16 02:10:16 mypc caddy[71188]: 16/Oct/2019:02:10:16 +0800 [ERROR 502 /] stream error: stream ID 13; HTTP_1_1_REQUIRED
Oct 16 02:10:16 mypc caddy[71188]: 16/Oct/2019:02:10:16 +0800 [ERROR 502 /favicon.ico] stream error: stream ID 17; HTTP_1_1_REQUIRED
5. Related resources for testing
I created a temporary test server and deployed Windows Admin Center on it. I will delete it after several days.
Access caddy reverse proxy to windows admin center: http://test.hez2010.com/
Access windows admin center directly: https://test.hez2010.com:1080/
username: hez2010, password: hez2010!hez2010
you can also use above credentials to access the server using RDP.
Thanks!