R
Railwayβ€’4mo ago
Thompson

Custom Domain

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?
No description
No description
Solution:
Looks to me like you harcoded the domains into the buttons
Jump to solution
23 Replies
Percy
Percyβ€’4mo ago
Project ID: N/A
Thompson
ThompsonOPβ€’4mo ago
N/A where i can find the Project ID?
Fragly
Fraglyβ€’4mo ago
Can you send a screenshot of your DNS configuration?
Thompson
ThompsonOPβ€’4mo ago
No description
Fragly
Fraglyβ€’4mo ago
the project id can be found in the URL: railway.app/projectid/serviceid 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
Thompson
ThompsonOPβ€’4mo 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.
Thompson
ThompsonOPβ€’4mo ago
No description
Thompson
ThompsonOPβ€’4mo ago
No description
Fragly
Fraglyβ€’4mo ago
it's set up under a subdomain so it won't conflict
Thompson
ThompsonOPβ€’4mo 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?
No description
Thompson
ThompsonOPβ€’4mo ago
Sub-page
No description
Fragly
Fraglyβ€’4mo ago
that is very strange πŸ€” what happens when you remove the provided domain from service settings?
Thompson
ThompsonOPβ€’4mo ago
This page is ok!!!
No description
Thompson
ThompsonOPβ€’4mo ago
This one NO!
No description
Solution
Fragly
Fraglyβ€’4mo ago
Looks to me like you harcoded the domains into the buttons
Thompson
ThompsonOPβ€’4mo ago
Oh yes! ok! I think I can fix this issus. Many thanks!
Fragly
Fraglyβ€’4mo ago
No problem πŸ™‚
Thompson
ThompsonOPβ€’4mo ago
for the root domain, what you are saying is that I shuld use CNAME instead of A record. Is this corrent?
Fragly
Fraglyβ€’4mo ago
Exactly
Thompson
ThompsonOPβ€’4mo ago
ok , will do! One more question. 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.
Fragly
Fraglyβ€’4mo 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
Thompson
ThompsonOPβ€’4mo ago
Oh! Many thank! Have a nice day. Bye!
Fragly
Fraglyβ€’4mo ago
No problem at all, you too :D
Want results from more Discord servers?
Add your server