custom domain not working
guymalka
HOBBYOP

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

Solved$10 Bounty

25 Replies

Status changed to Open Railway about 1 month ago


Assuming your CNAME/TXT records are set correctly, try accessing the URL from an incognito window.


guymalka
HOBBYOP

a month ago

from incognito get same result


Can you share your custom domain?


ereyomi
HOBBYTop 10% Contributor

a month ago

I have same isssue


ereyomi

I have same isssue

ereyomi
HOBBYTop 10% Contributor

a month ago


You need to add CNAME and TXT records to your domain.


0x5b62656e5d

You need to add CNAME and TXT records to your domain.

ereyomi
HOBBYTop 10% Contributor

a month ago

I did for xxx.myrenta.uk but not working


I'm getting a different error. Check your deployment logs and see if there are any errors.

Attachments


ereyomi
HOBBYTop 10% Contributor

a month ago

the internal url generated by railway works fine just my custom domain


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?

ereyomi
HOBBYTop 10% Contributor

a month ago

yes... changed it to 8080 now and it works


guymalka
HOBBYOP

a month ago

its on 8080


Yes, but is your application listening on 8080?


guymalka
HOBBYOP

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


guymalka
HOBBYOP

a month ago

the issue now is that https is invalidated and also blocked by ISP

Attachments


Try accessing from an incognito window. I can access your URLs just fine.


danish-anwar
PRO

a month ago

same issue even ports are same, default url is working but both backend and frontend sub-domains are giving this, even though my other sub-domains are working fine


Can you share the domains you're trying to access?


0x5b62656e5d

Can you share the domains you're trying to access?

danish-anwar
PRO

a month ago


0x5b62656e5d

Can you share the domains you're trying to access?

danish-anwar
PRO

a month ago

any idea?


guymalka
HOBBYOP

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


Try accessing the URL form an incognito window. Your browser might be caching a stale invalid certificate.

Attachments


paras-aal
FREE

22 days ago

Try this 2 things it will work i guess

  1. 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.

  2. 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


simpan
HOBBY

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?


guymalka
HOBBYOP

22 days ago

fixed , added another custom domain start www.


Status changed to Solved Railway 22 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...