a year ago
Hi everyone,
I’m currently on the Cloudflare to manage a custom domain. I have two separate services running in different containers, each hosted on Railway with its own public domain.
I want to use a single custom domain to route traffic to these instances as follows:
https://mydomain.com/ should route to the main service.
https://mydomain.com/app should route to the app service.
Since these services exist in separate containers and cannot be routed within the same instance, is there a way to achieve this setup on Cloudflare or in Railway
I’m looking for suggestions or best practices to configure this properly. Thanks in advance!
Happy Christmas!
5 Replies
a year ago
N/A
a year ago
You could make [site.mydomain.com](site.mydomain.com) and [app.mydomain.com](app.mydomain.com) subdomains, hook those up to your Railway services, and then set up a proxy in Cloudflare.
a year ago
That or [mydomain.com](mydomain.com) and api.[mydomain.com](mydomain.com)
a year ago
okay, thank you both, I got it set up correctly. Have a nice day~
a year ago
!s
Status changed to Solved brody • about 1 year ago
Status changed to Solved brody • about 1 year ago