Custom Domain Not Working

byteda
HOBBY

a year ago

I'm encountering an issue where my site cannot be reached after deploying to Railway, even though I've set up a custom domain and the necessary environment variables. Here's the situation:

  • Issue Description:

    • After deploying my Node.js and Express application to Railway, I attempted to access it using my custom domain. However, I'm receiving a "Site can't be reached" error.

    • It seems that the deployment is not properly routing to my custom domain.

  • Deployment Details:

    • My application is deployed on Railway and works correctly when accessed via the default Railway-provided domain.

    • The custom domain has been set up in the Railway dashboard, and DNS settings have been configured according to Railway's guidelines.

  • Environment Variables:

    • I have set the following environment variables in Railway:

      • DOMAIN_CLIENT: The URL of my custom domain.

      • PORT: Set to Railway's dynamic port, or I've allowed Railway to set this automatically.

6 Replies

a year ago

Hello,

None of these services have active deploys?


byteda
HOBBY

a year ago

Hello,

I did have an active deployment up yet it does not go to my custom domain. I just replaced all the Railway provided domains in my application to my custom domain and followed the instruction to go my domain registrar to setup the DNS.


a year ago

Please re-open when you have services in a working state.


Status changed to Solved brody 11 months ago


Status changed to Open byteda 11 months ago


byteda
HOBBY

a year ago

I do have services in a working state now.



byteda
HOBBY

a year ago

Thank you so much, it finally works!!


Custom Domain Not Working - Railway Help Station