Query regarding custom domain
rahul-techsaraz
FREEOP

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?

Solved$10 Bounty

Pinned Solution

smolpaw
HOBBY

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


rahul-techsaraz
FREEOP

8 months ago

By mistake resolved please reopen this thread


Status changed to Awaiting Railway Response Railway 8 months ago


rjbathgate
PRO

8 months ago


rahul-techsaraz

By mistake resolved please reopen this thread

smolpaw
HOBBY

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.


rahul-techsaraz
FREEOP

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?

smolpaw
HOBBY

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.

rahul-techsaraz
FREEOP

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.

rahul-techsaraz
FREEOP

8 months ago

Any update on this?


rahul-techsaraz

Any update on this?

smolpaw
HOBBY

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


Loading...