Preserving and routing based on subdomain in Cloudflare Tunnel

I’m using Cloudflare Tunnel (cloudflared) to route traffic to my internal services. My setup includes a wildcard DNS entry (that is pointing to my tunnel) and a wildcard ingress rule in the cloudflared configuration to catch all subdomains under * However, I’m having trouble preserving the subdomain information and correctly routing requests based on the subdomain. Here is my config:

  "ingress": [
      "hostname": "*",
      "originRequest": {
        "httpHostHeader": "*"
      "service": "http://*"
  "warp-routing": {
    "enabled": true

I get the error:
“error”: “Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp: lookup no such host",
“connIndex”: 0,
“originService”: "http://”,
“ingressRule”: 0

The error makes sense because the wildcard is used as is. I am using the Cloudflare UI. Is this possible?