How to use aws CloudFront for CDN

How to use aws CloudFront for CDN

1. create a new distribution in AWS cloudfront service, select alternative domain names

How to use aws CloudFront for CDN

2. create a new subdomain, and point the new subdomain CNAME to the xxxxxxxx.cloundfront.net you just got from the service.

3. Do the original setting for, tell the service where it can get content, the original website can in EC2 or just any website that out side of aws.

How to use aws CloudFront for CDN

4. Setting cache Behaviors, tell the service what kind of objects can be cached, what kind of things need forward to the original server get the content.

How to use aws CloudFront for CDN

5. For each behavior, do the related settings.

How to use aws CloudFront for CDN

6. For the default behavior, do the related settings.

How to use aws CloudFront for CDN

7. Wait few minutes,  when the status changed to Deployed, then the clound front is working.

How to use aws CloudFront for CDN

上一篇:Java Servlet系列之Servlet生命周期


下一篇:Java EE - Servlet 小结