Cloudared + Railway DNS is redirect my Custom Domain, Why?
zearpro
HOBBYOP

a year ago

Why my domain is been redirect instead of access from my custom domain?

I use CLOUDFLARE, and Follow all steps on railway Docs

My actual setup Cloudflare is...

CNAME | api.mywebsite.com (proxy Orange On) to -> xxxxxxxxx.up.railway.app

My railway dashboard shows...

api.mywebsite.com | Port 80 | Cloudflare proxy detected

When i access : api.mywebsite.com, redirect to my ( magic domain )
docker-image-production-xxxxxxx.up.railway.app | Port 80

Why that? I follow all steps on Documentation.

Setting on Cloudflare exacly the settings.

Can anyone help me?

Solved

4 Replies

unicodeveloper
PRO

a year ago

Please can you list the steps you followed?

It seems you set up a redirect instead of a CNAME record as shown in the documentation https://docs.railway.com/guides/public-networking#adding-a-root-domain-with-www-subdomain-to-cloudflare


Status changed to Awaiting User Response Railway about 1 year ago


unicodeveloper

Please can you list the steps you followed?It seems you set up a redirect instead of a CNAME record as shown in the documentation https://docs.railway.com/guides/public-networking#adding-a-root-domain-with-www-subdomain-to-cloudflare

zearpro
HOBBYOP

a year ago

Im not using thie method of redirect www non www.
But even i have configured now that way... still making the same redirect to : docker-image-production-xxxxxxx.up.railway.app

[ Cloudflare ]
1 : I setup DNS ( api.mywebsite.com ) as CNAME with ( proxy Orange On ) to xxxxxx.up.railwayapp.

2 : SSL/TLS type : Full, with Automatic https rewrites ( off ) and always use https ( off )

3 : No page rules or redirect for primary domain.

[ Railway ]
1 : I register only the : api.mywebsite.com and i get the url xxxxx.up.railway to put on my Cloudflare.

2 : Thats all what i have done!

How is the correct tutorial to ( no more redirect ) to works right as i want, acessing from my custom domain : api.mywebsite.com ?


Status changed to Awaiting Railway Response Railway about 1 year ago


a year ago

Hello,

You need to redeploy wordpress after adding a custom domain.

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


brody

Hello,You need to redeploy wordpress after adding a custom domain.Best,Brody

zearpro
HOBBYOP

a year ago

Thank you!
This solved my problem!


Status changed to Awaiting Railway Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...