Custom Domain Issue
My custom domain works at www.domain.com, but not domain.com. I am setup on cloudflare name servers and have cname entries for @ and www.
The www entry points to the root domain and the root domain entry points to the target provided by Railway, but for some reason I'm only able to access the site when including "www" in the URL. Otherwise I get a "nothing here...yet" railway error.
Anyone else have this issue or know the workaround?
15 Replies
Project ID:
N/A
N/A
show me a screenshot of the cloudflare DNS settings please
now show me the domains in railway
you don't have the non www domain there?
if I create a second domain it has a different cname target - the DNS can't have the root domain go to two different targets
it doesn't need to??
oh ok - just add the second domain and do nothing with the new DNS entry that pops up?
well ideally you would have set the www subdomain to the cname record railway would have given you
so do that too
right now it's set to your root domain
ok it works
this is a valid setup?
did not realize there could be more than 1 reference to the hosted app
thank you
as long as those are the correct records railway gave you for each entry, yes