I’m facing a challenge with my domain setup in Cloudflare and would appreciate any advice or insights from the community. I just migrated from Google Domains after their decision to sell to Squarespace
Here’s a brief overview of the issue:
Setup: My domain is configured with Cloudflare, and DNS records are proxied. I use NGINX to route subdomain traffic to specific internal IP addresses and ports.
- Problem: When DNS proxying is enabled in Cloudflare, accessing a subdomain (like
sub.example.com) leads to a generic NGINX page, not the expected content. This subdomain is supposed to route to an internal address like
- Observation: Disabling DNS proxy (setting DNS to “DNS only”) resolves the issue, and the subdomain routes correctly.
I suspect this might be related to how request headers, particularly the
Host header, are handled when proxied through Cloudflare. Has anyone else experienced similar issues or have suggestions on how to ensure correct header forwarding or other relevant settings in Cloudflare?
Any guidance or tips would be greatly appreciated!
Thanks in advance!