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
Percy
Percy2y ago
Project ID: N/A
corgis_anonymous
corgis_anonymousOP2y ago
N/A
Brody
Brody2y ago
show me a screenshot of the cloudflare DNS settings please
corgis_anonymous
corgis_anonymousOP2y ago
Brody
Brody2y ago
now show me the domains in railway
corgis_anonymous
corgis_anonymousOP2y ago
Brody
Brody2y ago
you don't have the non www domain there?
corgis_anonymous
corgis_anonymousOP2y ago
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
Brody
Brody2y ago
it doesn't need to??
corgis_anonymous
corgis_anonymousOP2y ago
oh ok - just add the second domain and do nothing with the new DNS entry that pops up?
Brody
Brody2y ago
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
corgis_anonymous
corgis_anonymousOP2y ago
ok it works
corgis_anonymous
corgis_anonymousOP2y ago
this is a valid setup?
corgis_anonymous
corgis_anonymousOP2y ago
did not realize there could be more than 1 reference to the hosted app thank you
Brody
Brody2y ago
as long as those are the correct records railway gave you for each entry, yes
Want results from more Discord servers?
Add your server