|

Amazon Cdn And Ssl
Posted 23 August 2014 - 03:03 AM #1
For anyone that's done this, I'm just wondering how you went with SSL for your domain? Do the images come in on its own url, for example; https://aws.cloudfront.com/myimage.jpg ?
Or have you guys created a CNAME record and have a wildcard SSL to allow for;
www.mywebsite.com
images.mywebsite.com
etc, etc.
I want to move over to the Amazon CDN a.s.a.p. as our dedicated server is handling a lot of connections, plus we're getting hit with excess data bills each month (our hosting in Australia is a lot more expensive and limited in bandwidth)
But I dont want to break the SSL for checkout, login etc (and my DEV server doesnt have SSL, its the one thing I can't test before going live)
Thanks,
Scott.
Posted 23 August 2014 - 01:43 PM #2
(We have a GeoTrust QuickSSL installed on our server.)
Posted 23 August 2014 - 02:11 PM #3
Cheers,
Scott.
Posted 23 August 2014 - 02:14 PM #4
Posted 23 August 2014 - 02:16 PM #5
Thanks again.
Posted 23 August 2014 - 02:25 PM #6
Not sure how I would know... I just checked the "Enable CDN" option in the CS-Cart admin.So are you only hosting images through Amazon?
Yes, definite speed improvements. My Gmetrix scores went from A/B to A/A.
Posted 24 August 2014 - 04:46 PM #7
I wonder how this works if you have multiple storefronts, I guess the cnd domain needs to be added to each storefront's SSL certificate.
Posted 28 August 2014 - 02:51 AM #8
I wonder if an S3 bucket needs to be created first or if we need to use our own subdomain.
I wonder how this works if you have multiple storefronts, I guess the cnd domain needs to be added to each storefront's SSL certificate.
Actually, you don't need an S3 bucket anymore. Cs Cart has done a really good job of implementing this. Here's a step by step for those who might be considering it;
1. Create an account with AWS Amazon; http://aws.amazon.com/
2. Click on your name in the top right corner and select "Security Credentials"
3. Go to; Access Keys (Access Key ID and Secret Access Key)
4. Create them.
5. Go to your Admin in Cs Cart; Admin > Administration > Storage > CDN Settings
6. Enter your keys
7. CS Cart and AWS will sync up and create the distribution for you automatically. DON'T create one in AWS yourself as its redundant.
8. You can jump back to AWS and go; Services > Cloudfront to see the progress of your Distribution being created. It usually takes around 10 - 15 minutes.
9. Back in your Admin > Administration > Storage > CDN Settings - you can click a link that will test if the CDN is ready. Once it is, you check the box "Enable CDN"
A word of warning; if you run SSL on your website dont use a CNAME it will break your site. Cloudfront is happy to provide the content as both SSL and non SSL with their own URL's. For example; http://d36563tr1.clo...mages/mypic.jpg and https://d36563tr1.cl...mages/mypic.jpg
CNAME; If you dont have SSL on your site, and would like a "pretty url" for your Cloudfront, for example; www.mysite.com and; cdn.mysite.com - there is a cool video here showing how to do it with Wordpress; He explains the CNAME creation around the 5:30 mark.
Posted 02 October 2014 - 10:16 PM #9
Thak you again mate!
Posted 07 November 2014 - 03:54 PM #11
Actually, you don't need an S3 bucket anymore. Cs Cart has done a really good job of implementing this. Here's a step by step for those who might be considering it;
1. Create an account with AWS Amazon; http://aws.amazon.com/
2. Click on your name in the top right corner and select "Security Credentials"
3. Go to; Access Keys (Access Key ID and Secret Access Key)
4. Create them.
5. Go to your Admin in Cs Cart; Admin > Administration > Storage > CDN Settings
6. Enter your keys
7. CS Cart and AWS will sync up and create the distribution for you automatically. DON'T create one in AWS yourself as its redundant.
8. You can jump back to AWS and go; Services > Cloudfront to see the progress of your Distribution being created. It usually takes around 10 - 15 minutes.
9. Back in your Admin > Administration > Storage > CDN Settings - you can click a link that will test if the CDN is ready. Once it is, you check the box "Enable CDN"
A word of warning; if you run SSL on your website dont use a CNAME it will break your site. Cloudfront is happy to provide the content as both SSL and non SSL with their own URL's. For example; http://d36563tr1.clo...mages/mypic.jpg and https://d36563tr1.cl...mages/mypic.jpg
CNAME; If you dont have SSL on your site, and would like a "pretty url" for your Cloudfront, for example; www.mysite.com and; cdn.mysite.com - there is a cool video here showing how to do it with Wordpress; https://www.youtube....h?v=uyVCW5EJqNU He explains the CNAME creation around the 5:30 mark.
hi,
so you are saying i don't need to upload ssl to amazon manualy???
Posted 07 November 2014 - 04:05 PM #12
hi,
so you are saying i don't need to upload ssl to amazon manualy???
That is correct.
Posted 07 November 2014 - 05:18 PM #14
Posted 07 November 2014 - 05:56 PM #15
Checkout
http://www.demel.si
Tested with tools.pongdom.com
Posted 07 November 2014 - 07:05 PM #16
Posted 07 November 2014 - 07:48 PM #17
Looks like your site would benefit from gzip compression of javacript and CSS. You can enable that in config.local.php. Run it through http://gtmetrix.com/ to spot other areas of improvement.
hi 2020,
you mean to change :
'gzip_css_js' => false, // gzip compiled css/js files to true in the config file ?
thanks in advance

Posted 07 November 2014 - 11:07 PM #18
Posted 10 November 2014 - 04:33 PM #19