How i can add custom domain?
actually i have custom domain anubhav1603.dev which is hosted on cloudflare, i want to add anubhav1603.dev/todo , how can i do that?
Solution:Jump to solution
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
...11 Replies
Project ID:
9295f590-a91b-41ac-8a92-07d2ded868ae
9295f590-a91b-41ac-8a92-07d2ded868ae
Solution
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
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
Create Next App
Generated by create next app
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
)how can i setup
the subdomain part
Click on
+ Custom Domain
, type in todo.anubhav1603.dev
, go to your cloudflare DNS settings and add the CNAME
record Railway gives yougot it
i added this but when i am visiting this it says too many redirects
You have to enable full ssl protection on Cloudflare too. By default is flexible, so change it to strict.
from where i can enable?
done
workinggggggggg
tnx