How CloudFront works with Dynamic Application? Does it need to setup different domains? One for dynamic, one for static? or configurate in the CloudFront so it can work with all the dynamic functions (ex. submit a feedback)?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use CloudFront to deliver your static content like images, stylesheets and scripts or even static HTML sites. The dynamic part of your application takes place on your EC2 instance.
The easiest way to do this, is to setup a subdomain like
static.example.comwith the corresponding CNAME entry which points to the CloudFront distribution domain. Also don’t forget to tell the matching CNAMES to your CloudFront distribution. For more information look at this: Amazon CloudFront – Using Alternate Domain Names (CNAMEs).