Here’s how to make api.my-app.com available under my-app.com/api, using CloudFront or Cloudflare.
If both my-app.com and api.my-app.com are hosted in AWS, you can route requests to these instances using the CloudFront CDN.
Here’s what you’ll need to do:
- Create a CloudFront distribution

