I have one domain lets say:
mydomain.com. I have a CNAME for it that points to my Heroku server lets say:
Now I have one more heroku server
I want my requests to go like this:
mydomain.com/api/* -> api.heroku.com mydomain.com/* -> web.heroku.com
But the url should be the same ie.
mydomain.com for all cases. Ie not a redirect that change the url to
web.heroku.com. Is this possible to do using Cloudflare?
Today I have a reverse proxy in my
api.heroku.com but this causes all requests to go via
api.heroku.com. I would like to have Cloudflare to do that selection instead resulting in no web requests to reach
api.heroku.com so I can remove the reverse proxy at my side.