pisoka
1
What I want to achieve is:
- www.my-app.com/appA → host app A
- www.my-app.com/appB → host app B
OR
- www.my-app.com → host app A
- www.my-app.com/appB → host app B
I’m pretty new to AWS, but I noticed that the answer to this lies somewhere near the CloudFront Behaviors. Haven gotten a satisfying result yet.
Any suggestions?
Related discussions:
alter3d
2
You’re right, this is what CloudFront behaviours are for, in combination with the origins.
Create an origin for app A.
Create an origin for app B.
Create behaviours that map path patterns to the appropriate origins, e.g.
/appA/* → origin A
/appB/* → origin B
If it’s not working, it’s almost guaranteed to be something with the path pattern.
pisoka
3
Thanks, I’ll try that out as soon as I get to my laptop
Since static content was specified, it would certainly be cheaper to use CloudFront, no?