R
Railway3mo ago
Anubhav

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?
No description
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...
Jump to solution
11 Replies
Percy
Percy3mo ago
Project ID: 9295f590-a91b-41ac-8a92-07d2ded868ae
Anubhav
AnubhavOP3mo ago
9295f590-a91b-41ac-8a92-07d2ded868ae
Solution
Fragly
Fragly3mo 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
Anubhav
AnubhavOP3mo 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
Create Next App
Generated by create next app
Fragly
Fragly3mo 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)
Anubhav
AnubhavOP3mo ago
how can i setup the subdomain part
Fragly
Fragly3mo ago
Click on + Custom Domain, type in todo.anubhav1603.dev, go to your cloudflare DNS settings and add the CNAME record Railway gives you
Anubhav
AnubhavOP3mo ago
got it
Anubhav
AnubhavOP3mo ago
i added this but when i am visiting this it says too many redirects
No description
Keziah
Keziah3mo ago
You have to enable full ssl protection on Cloudflare too. By default is flexible, so change it to strict.
Anubhav
AnubhavOP3mo ago
from where i can enable? done workinggggggggg tnx
Want results from more Discord servers?
Add your server