1. Caddy version (caddy version
):
2.4.5
2. How I run Caddy:
caddy.exe reverse-proxy --from https://*:41951 --to https://localhost:41951
a. System environment:
Windows 10
3. The problem I’m having:
I want to make a service that is bound to localhost:41951 accessible from the LAN, so not the public internet and WITHOUT a domain name as that would complicate things for the LAN clients.
It appears Caddy is willing to proxy, but the SSL connection is bad… maybe because I’m using an IP and not a domain name?
The browser keeps telling me:
The connection for this site is not secure192.168.0.56 sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
4. Error messages and/or full log output:
Log output seams normal.
>caddy.exe reverse-proxy --from https://*:41951 --to https://localhost:41951
2021/10/06 07:46:05.470 WARN admin admin endpoint disabled
2021/10/06 07:46:05.471 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "proxy"}
2021/10/06 07:46:05.471 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc00033a460"}
2021/10/06 07:46:05.494 INFO pki.ca.local root certificate is already trusted by system {"path": "storage:pki/authorities/local/root.crt"}
2021/10/06 07:46:05.495 INFO http enabling automatic TLS certificate management {"domains": ["*"]}
2021/10/06 07:46:05.496 WARN tls stapling OCSP {"error": "no OCSP stapling for [*]: no OCSP server specified in certificate"}
2021/10/06 07:46:05.496 INFO tls cleaning storage unit {"description": "FileStorage:C:\\Users\\wouter\\AppData\\Roaming\\Caddy"}
2021/10/06 07:46:05.497 INFO autosaved config (load with --resume flag) {"file": "C:\\Users\\wouter\\AppData\\Roaming\\Caddy\\autosave.json"}
Caddy proxying https://*:41951 -> https://localhost:41951
2021/10/06 07:46:05.499 INFO tls finished cleaning storage units
5. What I already tried:
I tried various notations in the --from
section, but no luck. For example I tried:
--from *:41951
--from https://*:41951
None of these combinations work.