How to use aws CloudFront for CDN
2014-12-26 10:29
429 查看
How to use aws CloudFront for CDN
1. create a new distribution in AWS cloudfront service, select alternative domain names
![](http://images.cnitblog.com/blog/579301/201412/170940145473704.png)
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.
![](http://images.cnitblog.com/blog/579301/201412/170942417346070.png)
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.
![](http://images.cnitblog.com/blog/579301/201412/170955136565286.png)
5. For each behavior, do the related settings.
![](http://images.cnitblog.com/blog/579301/201412/170948012347079.png)
6. For the default behavior, do the related settings.
![](http://images.cnitblog.com/blog/579301/201412/170950171874480.png)
7. Wait few minutes, when the status changed to Deployed, then the clound front is working.
1. create a new distribution in AWS cloudfront service, select alternative domain names
![](http://images.cnitblog.com/blog/579301/201412/170940145473704.png)
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.
![](http://images.cnitblog.com/blog/579301/201412/170942417346070.png)
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.
![](http://images.cnitblog.com/blog/579301/201412/170955136565286.png)
5. For each behavior, do the related settings.
![](http://images.cnitblog.com/blog/579301/201412/170948012347079.png)
6. For the default behavior, do the related settings.
![](http://images.cnitblog.com/blog/579301/201412/170950171874480.png)
7. Wait few minutes, when the status changed to Deployed, then the clound front is working.
![](http://images.cnitblog.com/blog/579301/201412/170957203596595.png)
相关文章推荐
- How To Use JavaSoft References For Caching @ JDJ
- 如何在QT for S60 中使用pthread库(Carbide.c++) (How to use pthread in QT4.6 for S60)
- How to Use RSA Key for SSH Authentication
- How to specify image folder path for each user when use TinyMce ImageManager with Symfony
- How to create fully custom Role, User, Event, Resource classes for use with the Security and Scheduler modules
- How to use Wise SetupCapture in the Wise Packager for Deployment Server to create an MSI
- How to use a Ramdisk for Linux
- How to use iPhone with File I/O Functions: A Tutorial for Software Developers
- How to use the HTML source for debugging issues
- ★ Learn how you can use Adobe Creative Suite to create skins for Flex and AIR applications.
- How to use http-proxy for svn
- How To Use WordBasic Functions in an MFC Automation Client for Word 97, Word 2000, Word 2002, or Word 2003
- How to use CPeriodic for a steady stream of ticks
- How to configure OpenFiler v2.3 iSCSI Storage for use with VMware ESX.
- How To Use Box2D For Just Collision Detection with Cocos2D iPhone
- How to create and use SDCard image for Android emulator
- How to use your Selenium Tests for automated JavaScript/AJAX Performance Analysis
- How to Use HTML Codes for Special Characters-转载
- How to save data in ASCII format in ADS for use in MATLAB
- How to use the same thread function for multiple threads (safely)