Hosting multiple s3 based frontend applications in same subdomain

Hi,
I struck in this part for so long,

what I’m trying to achieve
we have hosted 3 different applications in 3 different s3 buckets and then we configured Cloudfront for these buckets.
until this step, it is working fine
but we are facing an issue while configuring the following things in cloudflare
uat3.test.com is a subdomain
based on the path it should redirect to a different Cloudfront domains

uat3.test.com/app1 → should redirect to application 1/ cloudfront 1, and
uat3.test.com/app2 → should redirect to application 2/cloudfront 2
similarly uat3.test.com/app3 → should redirect to application 3/cloudfront 3

I tried following the approach
I created multiple buckets with multiple CloudFront for 3 applications
But in this case, When I created a CNAME uat3.test.com in Cloudflare we needed to attach this in CloudFront alternative name it was allowed only for a single CloudFront I was not able to attach the same domain name for multiple Cloudfront.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.