Custom Domain
thompsonkylaw
PROOP

2 years ago

I've added a custom domain and changed my DNS record pointing to the IP. But when I type in the custom domain in Chrome, after loading the page the address bar in chrome will change to the default public address and not showing my custom domain. Did i do anything wrong?

30 Replies

thompsonkylaw
PROOP

2 years ago

N/A


thompsonkylaw
PROOP

2 years ago

where i can find the Project ID?


2 years ago

Can you send a screenshot of your DNS configuration?


thompsonkylaw
PROOP

2 years ago

1267383331557740500


2 years ago

the project id can be found in the URL: railway.app/projectid/serviceid


2 years ago

It looks like your root domain is pointing towards an IP, that's not the correct way of setting this up, you need to use a CNAME and not an A record and it needs to point to the domain railway provides

Railway IPs are dynamic by default so A records will naturally break over time


thompsonkylaw
PROOP

2 years ago

ok, I have an other wordpress project which is using the custom domain as well. This one is using the CNAME, I show you which one.


thompsonkylaw
PROOP

2 years ago

1267384701585195000


thompsonkylaw
PROOP

2 years ago

1267384849686200300


2 years ago

it's set up under a subdomain so it won't conflict


thompsonkylaw
PROOP

2 years ago

This one is fine with main page. the domain name shown correctly. but when I move to the sub-page, the domain name show the defualt address again. how can I solve this?

1267385382958403600


thompsonkylaw
PROOP

2 years ago

Sub-page

1267385556770361300


2 years ago

that is very strange 🤔


2 years ago

what happens when you remove the provided domain from service settings?


thompsonkylaw
PROOP

2 years ago

This page is ok!!!

1267387136806621200


thompsonkylaw
PROOP

2 years ago

This one NO!

1267387306361225200


2 years ago

Looks to me like you harcoded the domains into the buttons


thompsonkylaw
PROOP

2 years ago

Oh


thompsonkylaw
PROOP

2 years ago

yes!


thompsonkylaw
PROOP

2 years ago

ok! I think I can fix this issus. Many thanks!


2 years ago

No problem 🙂


thompsonkylaw
PROOP

2 years ago

for the root domain, what you are saying is that I shuld use CNAME instead of A record. Is this corrent?


2 years ago

Exactly


thompsonkylaw
PROOP

2 years ago

ok , will do! One more question.


thompsonkylaw
PROOP

2 years ago

I have another project which is not a wordpress. It is a licensing server which has no GUI. How can I access it using the CLI? I am using win11.


2 years ago

Unfortunately Railway doesn't have SSH support so you can't exactly run commands on it remotely, so there's no way to use that service via CLI


thompsonkylaw
PROOP

2 years ago

Oh!


thompsonkylaw
PROOP

2 years ago

Many thank!


thompsonkylaw
PROOP

2 years ago

Have a nice day. Bye!


2 years ago

No problem at all, you too :D


Loading...