Hello,
I just configured 2 tunnels for 2 different domains, pointing to the same service (nginx reverse proxy).
When I hit domain A, it goes through the tunnel, to my service and serves a website correctly.
When I hit domain B, it goes through the tunnel, but gives an error
2023-06-28T19:12:20Z ERR error=“Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: remote error: tls: unrecognized name” cfRay=7de83da08d8c7139-YUL event=1 ingressRule=0 originService=https://:
2023-06-28T19:12:20Z ERR Request failed error=“Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: remote error: tls: unrecognized name” connIndex=1 dest=https://.com/ event=0 ip= type=http
If I look at the logs when the tunnel is booted, the configurations are slightly different for some reason, even though they are the exact same in Zero-Trust dashboard.
Domain A configuration from logs:
2023-06-28T19:05:13Z INF Updated to new configuration config=“{"ingress":[{"hostname":".ca","originRequest":{},"service":"https://:"},{"originRequest":{"originServerName":".ca"},"service":"https://:"}],"warp-routing":{"enabled":false}}” version=2
Domain B configuration from logs:
2023-06-28T19:05:03Z INF Updated to new configuration config=“{"ingress":[{"hostname":".com","originRequest":{"noTLSVerify":false},"service":"https://:"},{"service":"https://:"}],"warp-routing":{"enabled":false}}” version=4