I have a main domain, eg.: mydomain.com.
A Single Page Application: myApp, hosted on: myApp.somehost.com (IP: {ip.of.myapp}).
A WordPress Site: myWP, hosted on: myWP.anotherhost.com (IP: {ip.of.mywp}).
The goal:
- mydomain.com should show myWP (this is straight forward, I need an A record in my DNS NameServer, with {ip.of.mywp})
- mydomain.com/app should show myApp.
How would you solve the second one? Is there a frontend-proxy service provider or so?
What I tried:
- Cloudflare CDN: rewriting the hostname is not allowed.
- Vercel: here I can host static pages (myApp) and proxy certain subpaths. But not the root url! So mydomain.com can't show myWp
What should I do? Please help... Thanks
Note: I'm not planning to move myApp and myWP from their current servers.