ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข17mo agoโ€ข
4 replies
Elliot Hesp

Custom Hostnames (CF for SaaS) - some domains 522

Hi All,

We have custom hostnames enabled for a zone (docs.page), and have added a number of custom hostnames to test.

All hostnames are verified (green certificate status + hostname status). These hostnames are supposed to connect to a cloudflare worker, which is routed via the DNS record (this is setup).

The problem:

Some of these hostnames work (they hit the worker as expected), and some of them don't. Those that don't, have a 522 error, and there are no logs on the worker - it looks like an CF internal issue.

We've used a bunch of domains (both within cloudflare dns and outside):

Broken:

- https://test-docs.tangents.tech/ (Namecheap DNS)

- https://test.docs.page/ (Clouldflare DNS, same zone)

+ https://docs-test.giteye.io/ (Cloudflare DNS, same account)

Working:

- https://docs-test.elliothesp.co.uk/ (Cloudflare DNS, different account)

- https://test-docs.unverified.lol/ (Cloudflare DNS, different account)

We're totally stumped as to why this is happening - how do we go about debugging and resolving? Looks like those in the same account/zone are broken, but this shouldn't be the case...?
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

Pricing Cloudflare for Saas Custom Hostnames
Cloudflare DevelopersCDCloudflare Developers / general-help
7mo ago
Custom hostnames for SaaS timing out
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Wildcard SSLs with custom hostnames for SaaS?
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Make apex domains work with Cloudflare for SaaSโ€™s custom hostnames feature
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago