CloudFront for dynamic content CDN
Posted
by
Elad Lachmi
on Server Fault
See other posts from Server Fault
or by Elad Lachmi
Published on 2012-06-13T09:12:00Z
Indexed on
2012/06/13
10:42 UTC
Read the original article
Hit count: 297
I would like to use CF as a CDN for my entire site, including static and dynamic content.
I have been using CF for static content for a while and I am very happy with the results. I am now doing POC of putting the web server completely behind CF. For the dynamic content I created a new distribution and set the origin to be my web server. Right now I'm looking to test the solution, so I have the web server on the original domain and the CF distribution on the amazon domain.
This works with the exception of HTTPS urls and POST requests.
For HTTPS requests, I see the requests are forwarded to the original site domain for now, but how will CF handle them when I move the distribution to the www cname? What configuration changes should I make so that CF forwards HTTPS requests to the origin?
For POST requests, I want the post to be made to the origin server. Can I set this up in CF?
Finally, the site has membership. Can I configure CF to pull all content from the origin if the user is logged in?
Sorry for the long question. I'm a little lost and documentation for dynamic CF is still kind of scarce. Thank you!
© Server Fault or respective owner