How i can add custom domain?
anubhav1603
HOBBYOP

2 years ago

actually i have custom domain anubhav1603.dev which is hosted on cloudflare, i want to add anubhav1603.dev/todo , how can i do that?

15 Replies

anubhav1603
HOBBYOP

2 years ago

9295f590-a91b-41ac-8a92-07d2ded868ae


2 years ago

Click on + Custom Domain, type in anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you

Then make sure your SSL/TLS mode is set to Full


anubhav1603
HOBBYOP

2 years ago

actually its https://anubhav1603.dev already have some static content which is on cloudflare and i want to render the new site at /todo which on railway


2 years ago

that won't be possible unless you have some kind of reverse proxy that can route the requests to the correct server based on the path of the url

If you don't know how to do that though then you could also consider just using a subdomain (e.g todo.anubhav1603.dev)


anubhav1603
HOBBYOP

2 years ago

how can i setup


anubhav1603
HOBBYOP

2 years ago

the subdomain part


2 years ago

Click on + Custom Domain, type in todo.anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you


anubhav1603
HOBBYOP

2 years ago

got it


anubhav1603
HOBBYOP

2 years ago

i added this but when i am visiting this it says too many redirects

1279803203021439000


javikeziah
PRO

2 years ago

You have to enable full ssl protection on Cloudflare too. By default is flexible, so change it to strict.


anubhav1603
HOBBYOP

2 years ago

from where i can enable?


anubhav1603
HOBBYOP

2 years ago

done


anubhav1603
HOBBYOP

2 years ago

workinggggggggg


anubhav1603
HOBBYOP

2 years ago

tnx


ajm660
HOBBY

a year ago

Thanks, I had this problem too, and setting SSL/TLS to Full (strict) worked for me


Loading...