Port forwarding not working for subdomain with origin rule

I have a https server running on port 8443 with a cloudflare origin rule set to URI Full starts with https://pay.domain.com rewrite to 8443 The https server is using the cert/key pem file generated by cloudflare and going directly to https://pay.domain.com:8443 works and shows a valid ssl connection/cert When I go to https://pay.domain.com it shows a 520 cloudflare error I've already cleared the cloudflare cache, my browser cache and flushed the dns locally
1 Reply
Chaika
Chaika3w ago
The https server is using the cert/key pem file generated by cloudflare and going directly to https://pay.domain.com:8443/ works and shows a valid ssl connection/cert When I go to https://pay.domain.com/ it shows a 520 cloudflare error
Sounds like the origin rule isn't applying? Try changing it to Hostname eq pay.domain.com, and then you can use Trace now under Rules of your website config in Cloudflare dashboard, and make sure it matches. I'd also make sure your SSL/TLS Mode is Full (Strict) or Strict (SSL Only), SSL/TLS -> Overview, make sure you're on Full Strict or Strict SSL, otherwise Click Configure and select custom -> Full (Strict) Magic Link: https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls/configuration, otherwise it'd break when it starts applying

Did you find this page helpful?