preview

Nt1330 Unit 3

Decent Essays

How to set up a CDN (Amazon CloudFront) in Magento how-to-set-up-a-cdn-amazon-cloudfront-in-magento To speed up the websites can be sometimes a daunting task, but it can be done easily if you set up your Magento store by using Amazon CDN (CloudFront Content Delivery) Network to serve all the media files, JavaScript and CSS. CloudFront caches content on servers throughout the world and displays to the viewers based on the locations, to reduce network transmit time, in result to load the page faster. To set up the CloudFront, one need an AWS account. Once the account sets up, go to AWS management console and select CloudFront and click on “Create Distribution”. This will immediately start the process for creating a custom CDN for the Magento …show more content…

The Origin ID is Amazon internal ID which will be used to identify the distribution so it should be unique. amazon-CloudFront-settings-1_0 amazon-CloudFront-settings-2 The alternate domain name (CNAME) is the place where you’ll put the URL to pull the content from. Now click on the Create Distribution and the CloudFront will start creating the CDN. Time to configure the DNS, go to the distribution which is just created and see for the CloudFront specific domain name. Copy that domain name with the DNS provider, configure the CNAME to point from http://cdn.your-magento-site to the CloudFront domain name. When you are done with the CloudFront configuration and the CNAME had propagated, time to test it by loading the image from the site to the browser http://cdn.your-Magento-site.com/media/catalog/abc.jpg and use the URL from CDN. The image should be loaded correctly with an additional response header of ‘Via:1.1 abc123asqf.cloudfront.net (CloudFront).’ If the testing works fine, then it’s time to update your Magento system configuration to make use of CloudFront. Navigate to System > Configuration > General > Web, and an unseen area will appear called Unsecure, with following settings

Get Access