ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข14mo agoโ€ข
1 reply
Will

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
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Port Origin Rule
Cloudflare DevelopersCDCloudflare Developers / general-help
6mo ago
Origin rule not working.
Cloudflare DevelopersCDCloudflare Developers / general-help
16mo ago
Forwarding website ip:port to single subdomain
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago