8 months ago
I have domain name codewithrahul.com but i want to host my app codewithrahul.com/chat/poor-room
how can i configure this?
Pinned Solution
8 months ago
Hi, I was going to give instructions but decided to try to do it myself to test and it wasn't very straight forward. I thought i could do it with cloudflare page rules but it didn't work.
I need to do it with cloudflare workers where it would proxy traffic based on url.
The last time i did it is when i had control over the proxy and both the apps. In that case i was using nginx so i could do whatever i wanted.
Is your website that is visible on root domain also hosted on railway or just the chat room ?
Because if it hosted on railway then we can launch an additional nginx container which would then redirect traffic conditionally to either of your applications.
It would still work even if your root app is not hosted on railway but that will add an additional hop so slightly lesser speed and more bandwidth cost.
8 Replies
8 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 8 months ago
Status changed to Awaiting Railway Response Railway • 8 months ago
8 months ago
Check out the Custom Domains section of:
https://docs.railway.com/guides/public-networking#custom-domains
rahul-techsaraz
By mistake resolved please reopen this thread
8 months ago
Are you saying you want to host your app on this endpoint codewithrahul.com/chat/poor-room such that the poor-man is one app and your root domain is another ?
This is something you need to configure on Cloudflare. If this is what you need then let me know and I can guide you through the process.
8 months ago
see this is my domain codewithrahul.com and and I want to host my app on /chat/poor-room so that it will be accessible on codewithrahul.com/chat/poor-room and make sure my root project(codewithrahul.com) should not impact because another service is running already there and I have hosted on hostinger and I dont have cloudflare . SO is this possble to configure this?
rahul-techsaraz
see this is my domain codewithrahul.com and and I want to host my app on /chat/poor-room so that it will be accessible on codewithrahul.com/chat/poor-room and make sure my root project(codewithrahul.com) should not impact because another service is running already there and I have hosted on hostinger and I dont have cloudflare . SO is this possble to configure this?
8 months ago
yes it's possible, however this is something that will take a lot of time (waiting for nameservers) and back & forth messages and likely some changes in your chat app as well.
You will have to switch your dns provider from hostinger to cloudflare. Your domain will stay in hostinger but cloudflare will manage your dns.
If this is something you are interested to do then let me know and we can finish this process on discord. Will take forever talking here.
smolpaw
yes it's possible, however this is something that will take a lot of time (waiting for nameservers) and back & forth messages and likely some changes in your chat app as well.You will have to switch your dns provider from hostinger to cloudflare. Your domain will stay in hostinger but cloudflare will manage your dns.If this is something you are interested to do then let me know and we can finish this process on discord. Will take forever talking here.
8 months ago
Yes please let me know the steps how i can configure my dns to cloudflare and proceed
smolpaw
yes it's possible, however this is something that will take a lot of time (waiting for nameservers) and back & forth messages and likely some changes in your chat app as well.You will have to switch your dns provider from hostinger to cloudflare. Your domain will stay in hostinger but cloudflare will manage your dns.If this is something you are interested to do then let me know and we can finish this process on discord. Will take forever talking here.
8 months ago
Any update on this?
rahul-techsaraz
Any update on this?
8 months ago
Hi, I was going to give instructions but decided to try to do it myself to test and it wasn't very straight forward. I thought i could do it with cloudflare page rules but it didn't work.
I need to do it with cloudflare workers where it would proxy traffic based on url.
The last time i did it is when i had control over the proxy and both the apps. In that case i was using nginx so i could do whatever i wanted.
Is your website that is visible on root domain also hosted on railway or just the chat room ?
Because if it hosted on railway then we can launch an additional nginx container which would then redirect traffic conditionally to either of your applications.
It would still work even if your root app is not hosted on railway but that will add an additional hop so slightly lesser speed and more bandwidth cost.
Status changed to Solved chandrika • 8 months ago
