a month ago
my Custom domain is not resolving. The Railway-provided domain generated domain works fine, but the custom domain shows no response.
What I've Tried
Added custom domain to service networking configuration
Waited 48+ hours for DNS propagation
Re-added domain multiple times
Verified service is running (nginx online, no errors in logs)
No HTTPS certificate provisioning visible
Questions
Why does the custom domain disappear from the service config after being added?
Is there a DNS verification step I'm missing?
Should the HTTPS certificate provision automatically, or is manual action needed?
Attachments
25 Replies
Status changed to Open Railway • about 1 month ago
a month ago
Assuming your CNAME/TXT records are set correctly, try accessing the URL from an incognito window.
a month ago
from incognito get same result
a month ago
I have same isssue
0x5b62656e5d
You need to add CNAME and TXT records to your domain.
a month ago
I did for xxx.myrenta.uk but not working
a month ago
I'm getting a different error. Check your deployment logs and see if there are any errors.
Attachments
a month ago
the internal url generated by railway works fine just my custom domain
a month ago
I assume the port your custom domain is mapped to is the same port as your application?
0x5b62656e5d
I assume the port your custom domain is mapped to is the same port as your application?
a month ago
yes... changed it to 8080 now and it works
a month ago
railway domain work as expected on port 80
custom port does not work for port 80 and also for port 8080
Attachments
a month ago
the issue now is that https is invalidated and also blocked by ISP
Attachments
a month ago
a month ago
0x5b62656e5d
Can you share the domains you're trying to access?
a month ago
0x5b62656e5d
Can you share the domains you're trying to access?
a month ago
any idea?
a month ago
original thread still relevant
https issue
The certificate for this site is not valid.
Because this connection is not secure, information (such as passwords or credit cards) will not be securely sent to this site and may be intercepted or seen by others.
We suggest you don't enter personal information into this site or avoid using this site.
in addition ISP block the domain i bought from railway.com
22 days ago
Try accessing the URL form an incognito window. Your browser might be caching a stale invalid certificate.
Attachments
22 days ago
Try this 2 things it will work i guess
-
try to open this link via any proxy browser online so you can first check if any issues not with DNS cashing in your browser if that is issue and you can work on invalidate cache and all. But first check proxy servers so you get idea if it running or not actually.
-
If this is your spring boot application do not specify server.port property. this might be also applicable for other apps also. Remove specified port and let railway to do the magic.
Try this your app will run for sure
22 days ago
It works for me, no errors with https.
I used cloudflare and used a subdoman, i think the setup is different for root domains but since it works here i think its the cache as many other has said herel.
I was also inpatient and changed setting before letting some time go by, exactly when i was about to skip doing it by sub domain and do it via root domain instead it suddenly worked and since i used cloudflare there were even a connect to cloudflare button that should have set it up for me but didnt workin the start for me.
I used port 8080 for my port at the external domain, since in my case at least there is a Caddy between the visitor and PHP backend so:
From: https://docs.railway.com/networking/domains/working-with-domains
'''
Target ports
Target Ports, or Magic Ports, correlate a single domain to a specific internal port that the application listens on, enabling you to expose multiple HTTP ports through the use of multiple domains.
Example -
https://example.com/ → :8080
'''
Then if there is something special for root domain idk.
You could also try and remove the ssl cert all together and add a new one a few hours or a day later (dont remember how often they check re-newals or creation of new ssl certs but according to AI that can help, i struggled with this issue for a long time so picked up a few things a long the way.
At least your domain gets pointed to railway so the issue seems to be somewhere here, i used claudflare and with some settings i got error at claudeflare site with their proxy, what DNS hosting provider are you using(shouldn't mather if the request gets thru i belive but be sure to read thru all the docs in the link i posted above and related links and ask AI about the problem?
Status changed to Solved Railway • 22 days ago
