Тёмный

Amazon (AWS) CloudFront CDN and W3 Total Cache Tutorial 

Craigerson
Подписаться 1,4 тыс.
Просмотров 35 тыс.
50% 1

Content Update for 2022 (see below).
This video was originally published in Dec 2016. A number of things have changed over the last 5 years, so I updated the content of this video to keep it current with the changes in AWS as well as W3 Total Cache. If you're looking for an easier to follow tutorial that's current as of July 2022, please use the following link:
• Setup An AWS CloudFron...
Easily set up an AWS CloudFront CDN for your WordPress blog using Amazon CloudFront and W3 Total Cache.
This AWS CloudFront tutorial will walk you through setting up a CloudFront CDN for your WordPress Blog. You'll create a new CloudFront Distribution using the W3 Total Cache Plugin, and we'll test it all out to ensure things are working.
Topics covered in this video include:
- Accessing the AWS Management Console
- Setting up an S3 Bucket and CloudFront
- Creating a User Group and User with Identity and Access Management
- Configure W3 Total Cache CDN Settings
- Setting Up A CloudFront Distribution
You can also view my blog post on this topic:
www.craigerson.com/wordpress-w...

Наука

Опубликовано:

 

3 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 157   
@dandyooo
@dandyooo 7 лет назад
This is the most comprehensive tutorial among the others. Thanks!
@rfo77
@rfo77 4 года назад
Man, you helped me out big time for a part of my college project which I left for the last minute. So many other tutorials where they overcomplicate things, and you made it super easy!
@PaulLittlefield
@PaulLittlefield 3 года назад
Thanks so much - this makes perfect sense and SO much easier than setting it up in the AWS Dashboard. Like you say... "let W3 Total Cache do all the heavy lifting." Genius!
@Rory181redbull
@Rory181redbull 7 лет назад
Really great video. You make it very simple to understand!
@fuserelcabo6305
@fuserelcabo6305 6 лет назад
Hey I wanted to reach out and say thanks! Your tutorial helped me navigate Amazon and W3!
@adamkennedyripon
@adamkennedyripon 7 лет назад
Thank you - excellent video, clear to follow.
@zachgoll
@zachgoll 6 лет назад
Truly a 10 minute solution! Thanks so much!
@Craigerson
@Craigerson 5 лет назад
Glad I was able to help!
@nileshpancholi4780
@nileshpancholi4780 4 года назад
This was really helpful with no-nonsense.
@thewestindianboy
@thewestindianboy 3 года назад
This helped me in March 30, 2021. Great job..
@goldeneyeforevercom
@goldeneyeforevercom 7 лет назад
I really appreciate the videos. One thing perhaps you would consider, is a W3 Total Cache tutorial? I'm sifting through painful and largely rubbish setup tutorials. Clearly you know how to communicate and explain setups better than most anyone out there. Thank you.
@Craigerson
@Craigerson 7 лет назад
Great idea on the W3 Total Cache tutorial, as it's definitely not the most straight forward setup. Appreciate the kind words. We'll see if I can't get something out in the coming weeks
@kitano47
@kitano47 5 лет назад
no bs straight to the point. thanks
@KeithHosman
@KeithHosman 5 лет назад
Excellent video - very clear, easy to follow - and relevant.
@Craigerson
@Craigerson 5 лет назад
Thanks Keith
@Abdullah_Salman99
@Abdullah_Salman99 4 года назад
Man thank you, thank you and thank you I have been trying to solve this problem for a day and a half you helped a lot thank you ❤❤❤❤❤❤❤
@securityperth
@securityperth 4 года назад
thank you. simple, easy to follow and it worked perfectly.
@Craigerson
@Craigerson 4 года назад
Awesome. Glad to hear it Glenn.
@JatinChhabra
@JatinChhabra 7 лет назад
Hey Craig, thanks for creating a very helpful guide on how add to amazon cdn. I was planning yo buy one from max or cloud flare. Have just installed one on my site, lets see the result.
@jvfrance10
@jvfrance10 4 года назад
You did a great job! it was so easy to set up a CDN this way! Thanks for your hard work!
@Craigerson
@Craigerson 4 года назад
Glad I was able to help.
@JoeKingstonS
@JoeKingstonS 7 лет назад
thank you for the video!
@desisto007
@desisto007 4 года назад
Thank you so much for sharing it! It helped me a lot!
@Craigerson
@Craigerson 4 года назад
Glad it helped.
@supervitallica
@supervitallica 4 года назад
Still works in april 2020, Thanks!
@WaseemSindhu
@WaseemSindhu 6 лет назад
Thanks a lot, I was making a simple mistake which took me 2 hours to diagnose and luckily this video made my day... now my website load time ROCKS. Thanks again.
@footitch
@footitch 6 лет назад
@Sindhu, could we connect? I've followed this great tutorial, however my images are still being served from WP. I'm ping'ing you since you commented 1 month ago.
@WaseemSindhu
@WaseemSindhu 6 лет назад
footitch hi, you must have skipped a step, can you share snap of your WP plugin config or redo from scratch to make sure you didn’t skip any step?
@footitch
@footitch 6 лет назад
Thanks for the reply. Please ping me an email at joeweissjr@hotmail.com and I'll share a screenShot. I was thinking about starting from scratch. I was able to verify that images are being served from my cdn, just not being updated in my site.
@prasanthvijayakumar4441
@prasanthvijayakumar4441 4 года назад
@@footitch were you able to correct it ? i am having the same issue with images still being served from WP.
@footitch
@footitch 4 года назад
@@prasanthvijayakumar4441 I did get things working. It's been a while but I could church and remember how I got it configured
@ronehasan2082
@ronehasan2082 6 лет назад
clear step for setup caching. thanks lot
@fernandogarcia1022
@fernandogarcia1022 4 года назад
dude thank you so much, im really willing to watch more useful content from you, cheers to your brewing website, interested into start brewing too.
@Craigerson
@Craigerson 4 года назад
Thanks Luis! Homebrewing is an awesome hobby, and I’m definitely hooked.
@Digiengland
@Digiengland Год назад
Thanks So much for Information
@RevUpBilling
@RevUpBilling 6 лет назад
Nice video. Very helpful. Thanks!
@Craigerson
@Craigerson 6 лет назад
Awesome - glad it helped.
@md.sanwarhossainkhan2849
@md.sanwarhossainkhan2849 3 года назад
It working. thanks
@keisukekuribara6444
@keisukekuribara6444 5 лет назад
thank you !!
@persiaguitar
@persiaguitar 4 года назад
Thanks a bunch
@matthale5388
@matthale5388 5 лет назад
what a great video
@JesusACastilloA
@JesusACastilloA 2 года назад
Thanks Bro! you helped me a lot 👍
@Craigerson
@Craigerson 2 года назад
Glad I could help
@hamidatir8193
@hamidatir8193 7 лет назад
good work
@dcocrypto7446
@dcocrypto7446 5 лет назад
Cheers bro,
@footitch
@footitch 6 лет назад
Awesome video, very clear and concise. My problem... My 'test cloudFront distribution' passed however my images still are being served from my local WP install (mydomain/image1.jpg). What did I do wrong?
@takiaschannel
@takiaschannel 4 года назад
Hi I have woocommerce, how do I make it not upload and cache the cart, my account and checkout sections? I read if these are cached then customers will have problem buying products from my site. Can you kindly guide me on this. Many thanks
@eraheem
@eraheem 7 лет назад
Any idea why Amazon Cloudfront is not selectable in W3 total cache? It seems that it wants me to signup with MAxCDN.
@MrLeangkang
@MrLeangkang 5 лет назад
the best
@TeacherFlash
@TeacherFlash 2 года назад
this is ok but why aren't images and stuff appearing in the s3 bucket?
@couponstrap9435
@couponstrap9435 6 лет назад
What is the use of creating s3 bucket. I didn't see anything in that bucket?
@The72Rabbit
@The72Rabbit 6 лет назад
If my app / web site consists of SQL 2005, how do I connect to that??? Do you have links that refer AWS CDM to this type of build?
@dbhuwan
@dbhuwan 6 лет назад
You dont need S3 bucket for Pull mode. All you need is a user with AWSAdmin rights policy attached to it (no S3 policy required). Then enter access keys of that user in W3 total cache dashboard under CDN section
@bossbrain3107
@bossbrain3107 4 года назад
Still works in 2020
@archproject
@archproject 5 лет назад
can you do an updated video of cloudfront and w3 total cache. ?
@samplenrack
@samplenrack 7 лет назад
best tutorial ever !! I have tried many other tutorial on YT and broke my theme several times. Thanks so much btw : could you please explain in detail the Cname function, I broke the theme while adding it. Also why setting up a bucket ? it seems to be empty ? Many thanks
@Craigerson
@Craigerson 7 лет назад
Thanks! Not sure why the theme would break when adding a CNAME. It's simply an alternate name for the CDN URL. I was planning to get a video posted on that in the near future. As for the S3 Bucket. I can't explain. I tried to set things up without the Bucket established, and I got errors. Once I created the Bucket, everything worked fine.
@samplenrack
@samplenrack 7 лет назад
thanks so much ! also I'm curious about "the cache behavior' inside Aws. Would be great to talk about that. Ps :I came from a G note on www.gtmetrix.com/ to a B ! I was thrilled, but suddenly it dropped to a C... I have no idea what's going on
@Craigerson
@Craigerson 7 лет назад
I've got a video coming on the CNAME functionality, just need to edit it and get the thing uploaded.
@fkangalov
@fkangalov 4 года назад
I have to comment here about an issue for this: Basically this tutorial doesn't use the S3 storage at all to store the data from the Wordpress site that is why it is mentioned that additional steps are not required when changing the settings inside W3 Total Cache plugin. I wanted to try this and confirm for myself so I deleted all my S3 storages from the AWS and everything still worked, also what I could see inside the 'Origin' section of the distribution, there is a different (auto-suggest dropdown) to choose an S3 storage (if it currently exists), so just so you know that even though this works it doesn't use the S3 storage space for the files but instead probably gets them from your site and makes CDN to deliver them through it instead but your site still has them on your own server and not S3 storage. Hope this helps, and please comment/reply to this if I am mistaken.
@bergbergberg4976
@bergbergberg4976 6 лет назад
hey i dont know if the settings have changed for aws, but when i setup like the way you shown on the video, none of the wp contents are pulled to my s3 bucket. is there a step missing?
@Craigerson
@Craigerson 6 лет назад
They won't be. This video covers the Origin Pull distribution, meaning the Amazon distributed servers pull the content directly from your Web Server. If you want them to be pulled from your S3 Bucket, you need to use the Origin Push distribution. I've got a video on that as well: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HPwNv9Ok_cs.html
@lopo8000
@lopo8000 3 года назад
after i did this some icons like the search icon are just gonne or changed , what can i do to solve that?
@kingofl337
@kingofl337 5 лет назад
Does anyone know if the key is encrypted in the WP database. So if someone were to hack the Wordpress site they couldn't get an admin key? Is there a more restrictive permissions level then admin on IAM that will keep Cloudfront working?
@2010MConnolly
@2010MConnolly 4 года назад
Hey, I followed this with a wordpress site hosted in AWS, the tutorial is great but when I click the final "save settings and purge cache" it takes the whole site offline by causing a 502 error. Disabling the w3 plugin fixed the issue, but now there is no CDN, I was wondering if you / anyone in the comment had come across this?
@giovanniabraham7653
@giovanniabraham7653 2 года назад
@craigerson Everything is working on my end. quick question, does this actually move the media files off the hosting server and on too the amazon s3? for example everytime i upload images it will be using amazon s3 and not the hosting SSD space
@Craigerson
@Craigerson 2 года назад
It does not move the media files off your shared server. Think of your shared host as the gold source, that the CDN nodes copy from.
@lopo8000
@lopo8000 3 года назад
Is this also what u are supposed to do when u get System information disabled due to load higher than 1.0 all the time??
@jephthahokpukoro4717
@jephthahokpukoro4717 7 лет назад
Nice tutorial. Is it necessary to setup bucket policy, using your guidelines?
@Craigerson
@Craigerson 7 лет назад
Not sure what you mean by a bucket policy Jeff. Yes, I had to set up an S3 Bucket, but that's all I had to do. No need to populate that bucket at all, and I haven't touched in since.
@zhedu3389
@zhedu3389 7 лет назад
Hi Craigerson, very good tutorial! Thank you so much, a quick question. If I added more content to the site after I did all of this shown in the video, will the newly added content be automatically distributed through CloudFront? Thank you!
@Craigerson
@Craigerson 7 лет назад
It absolutely will, without any added steps on your part. It just happens.
@zhedu3389
@zhedu3389 7 лет назад
Amazing!
@GurunathEswar
@GurunathEswar 3 года назад
Hi i'm using w3 total cache , it's not clearing woocommerce product data after updating product information also , it's showing old data only, if i clicked empty all caches button also, it's showing old product information.
@altitudeaddicts
@altitudeaddicts 3 года назад
Splendid video. I have a question. How do I add a subfolder WordPress install in the same CloudFront instance as the main domain? An example I have WordPress install xyz.com with a CloudFront instance. I want to add xyz.com/subfolder WordPress install too in the same instance. BTW I forgot the original secret key so I have to create a new user? If I do, how will I connect the new user to the CloudFront instance?
@45andSingle
@45andSingle 5 лет назад
This is very helpful and not convoluted at all, thank you! I do have a question after following the instructions in your video and all going well, I'm confused as to why create an S3 bucket? When I look at my bucket, it is empty. Isn't AWS/Cloudfront supposed to "pull" all your WP site files, images, etc into the bucket? Did I miss something? I see the images on my site have the cloudfront url, so it is working. Also testing site speed doesn't seem to improve much if at all after doing all this.
@Craigerson
@Craigerson 5 лет назад
It’s a great question and one I haven’t been able to figure out. When I first set this up without the S3 Bucket, I couldn’t get things to work. Adding the S3 Bucket solved things, even though it doesn’t appear to be used.
@45andSingle
@45andSingle 5 лет назад
Thank you for your reply. I have read blogs where they say you can upload your WP content files to the S3 bucket so that Cloudfront can serve your site from S3. But that's beyond my skill level.
@Craigerson
@Craigerson 5 лет назад
You can. Take a look at my other CloudFront video using Origin Push, where I walk through how to do that.
@marclouiecabigas3771
@marclouiecabigas3771 3 года назад
Hello I think i am late, but thank you for great tutorial, can you help me a bit? I tested this on my staging site and now i have 401 code, how can I bypass that without authorization?
@jasonmiller6253
@jasonmiller6253 3 года назад
Thanks for the awesome tutorial. Can you please assist with my issue? I have a woocommerce wordpress website with few products at the moment. Is W3 Total cashe alone sufficient to load content to CDN, even in this case? Or are there any additional plugins or steps required to match this tutorial for a ecommerce website? Cheers!
@Craigerson
@Craigerson 3 года назад
Haven’t done much with eCommerce sites. Based upon my experience W3 Total Cache should be all you need to enable your CDN. I just did this for a new blog I’m maintaining and it worked without issue.
@jasonmiller6253
@jasonmiller6253 3 года назад
@@Craigerson Thanks for the reply. I used W3 total cache. My requirement is to offload images to cdn and improve loading speed. But still image locations show “wp-content” in the url. And the loading speed hasn’t improved.
@oconnorjr65
@oconnorjr65 7 лет назад
Worked great, one problem. I named my bucket www.mydomainname.com and everything worked perfect. However, when I decided to enable 'Amazon S3 Transfer Acceleration' to improve my load time even more, Amazon said it cannot enable this feature for buckets that have (.) periods in them, like my domain name. My question is, If I do the entire process over per your video, creating new keys and a new bucket without periods in the name, and change the keys in W3 Total Cache, will the site upload without issues to the new bucket, now that everything is already being delivered by another bucket? Basically, can I simply follow your video, create all new, and then just change the keys in W3TC, or will the new bucket try pulling data from the original bucket, causing problems? Thanks for any help.
@MSHLEDLighting
@MSHLEDLighting 3 года назад
oh, I can not find the performance in wordpress. where is it?
@SolemarketingAgency
@SolemarketingAgency 7 лет назад
Great Video! Really helpful, thanks! I have a question: Is it possible to set 2 websites using the same AWS cloudfront account? If so can you please explain how? Many thanks in advance.
@Craigerson
@Craigerson 7 лет назад
You can have as many sites set up as you want with a single AWS account. Each CloudFront Distribution has it's own Origin (your website). Simply go through the same steps for each site you want to set up.
@SolemarketingAgency
@SolemarketingAgency 7 лет назад
That's Great! Thanks a lot!
@dbybanez
@dbybanez 6 лет назад
Great tutorial! Thank you for this! I check on this but I get stuck on creating CloudFront distribution using W3 Total Cache plugin. Do I need to change any permission on AWS?
@Craigerson
@Craigerson 6 лет назад
Hey David - You shouldn't need to worry about setting any permissions in AWS for CloudFront to work.
@dbybanez
@dbybanez 6 лет назад
Craigerson thanks for replying! By the way, does it matter where you installed WordPress? Because my current installation is inside a subdirectory in the root.
@Craigerson
@Craigerson 6 лет назад
It shouldn't matter where you have it installed. I'm guessing W3 Total Cache is smart enough to figure out where the blog is installed, and you should see that when you create the Distribution in the CDN setting of W3 Total Cache. Now with that said, I haven't tried it with WordPress installed in a folder, it's always been in the root directory.
@dbybanez
@dbybanez 6 лет назад
Hi Craigerson! Thanks for answering my question. One more thing, how does CloudFront communicate with S3 Bucket? Do we really need to specify the domain name once we create the bucket? Or can the name of the bucket be anything for as long as it's unique? If the name can be anything for as long as it satisfies the requirements, going back to my first question, how does CloudFront control or communicate with S3 Bucket? Thank you so much for your help!
@anvileducation6934
@anvileducation6934 4 года назад
I have a question. If we create more pages and posts and added more media on wordpress after doing this procedure, would the new data automatically add to the aws bucket or will we need to do all of this again?
@Craigerson
@Craigerson 4 года назад
Any new content should automatically be updated.
@chittasec
@chittasec 7 лет назад
Where was the S3 bucket used in all these setup ? After the bucket was created there was no more reference to this through-out the video. Am I missing something ?
@Craigerson
@Craigerson 7 лет назад
It's not +chittasec. If you want to use an S3 Bucket in your set up you'll need to use a Push Distribution. Check out my othe video for that.
@GodSentV
@GodSentV 6 лет назад
Great video, question will this work for video content within WordPress, If I create a video playlist, do the CloudFront link to the video need to be within the video playlist?
@Craigerson
@Craigerson 6 лет назад
Yes, Amazon CloudFront will absolutely work for video that's hosted on your web server. It's really not a lot different than hosting images. The video or image is cached on the CloudFront servers and served directly from there. I'm not really sure about the video playlist question Sheraton, you'd have to play around with that.
@GodSentV
@GodSentV 6 лет назад
Do you have a video on how to change the CNAME? Also thank you very much for the awesome video.
@Craigerson
@Craigerson 6 лет назад
I do. It's not really related to CloudFront, however it's focused on pointing an existing domain name you own to an AWS EC2 Instance, and you do this by updating the CNAME. Here it is: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qEzM2L6OgzE.html
@GodSentV
@GodSentV 6 лет назад
Is this the same if I am doing my own hosting on my server? And how does having a bucket play a role? I see in the older RU-vid videos the bucket can be added to W3 Total Cache, but not in the new version.
@accountnew6474
@accountnew6474 4 года назад
Hello Craigerson, I do have one question concerning this. I have done everything as you HOWEVER, my S3 bucket remains empty. When I tested the webpage on some sites for testing the loading such as google speed test, it tells me all okay now. Images are not shown in a recommendation to use caching for them since they are static, I assume because I already do use caching because i did everything as you said? However, S3 bucket is empty. Completely. I noticed that AWS changed their interface when creating the bucket, and it asked me about some permissions. By default it was all disabled. Hmmm Wonder if that is the reason? If the bucket isn't getting anything in and out of it, then could it be that the cloud front is loading things off of my server? Would this mean that cloud front can accelerate your website, irrelevant of whether it reads from your server or your S3 bucket? Please assist, if indeed it is the problem with S3 permissions, what should I do? Should I adjust the S3 permissions so that wordpress can somehow save stuff in it. I tested something, I uploaded something in media in my wordpress, and it did NOT appear in my s3 bucket. Please assist, thank you so much for this video.
@accountnew6474
@accountnew6474 4 года назад
please help me
@MohammedUmrethwala
@MohammedUmrethwala 2 года назад
what about setting up, cloudfront with orgin of ec2 instance? how does that work. This method would just cache images? how to cache my whole blog?
@Craigerson
@Craigerson 2 года назад
The method I described will cache pretty much everything in your blog. It’s completely configurable in your W3TC CDN settings. I’ve got a refreshed video coming this week on setting up CloudFront for your WordPress blog. I have not looked into using CloudFront on an EC2 instance, so not sure I can explain that for you.
@vanderlei5566
@vanderlei5566 5 лет назад
This worked except it has disabled some functions on my website that are offered through a 3rd party company for booking classes. Any idea why enabling a CDN would affect this? I can't figure out what to do about it. Please help!
@Craigerson
@Craigerson 5 лет назад
Not sure. The only thing I can think of is there are some required functions that may not be loaded on the remote servers. You may need to exclude certain things from being cached.
@taimurkhan5814
@taimurkhan5814 7 лет назад
thanks for this amazing video...My website is using a custom ssl so whenever I try your method it breaks the website and I have tried waiting for one whole day but the website stays broke Can you please create a video or tell me if someone is using a custom ssl what he should do?
@Craigerson
@Craigerson 7 лет назад
Thanks Taimur. Haven't used SSL on any of my sites. Have you tried the other SSL options in W3 Total Cache settings to see if that made a difference? Amazon also has some good information on SSL Cert requirements: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-requirements.html
@codeman12344
@codeman12344 7 лет назад
Hello Craig, I am having same problem as Taimur with Custom SSL from Comodo or even Lets Encrypt website breaks, is there a method to fix this you can recommend? Because with Amazon SSL happens the same.
@wealthiness
@wealthiness 7 лет назад
Anyone find fix for this?! I tried so many different settings on both w3 & cloudfront with no luck
@robertturner1550
@robertturner1550 7 лет назад
you want to add to the CDN's cname. cdn.example.com
@wealthiness
@wealthiness 7 лет назад
Robert Turner It didnt work test said: Domain name is not in distribution CNAME list.
@mariodonevski4442
@mariodonevski4442 4 месяца назад
My website broke. Content Delivery Network object support via Amazon Cloudfront is currently enabled and not authorized. Content Delivery Network full-site-delivery support via None is currently disabled and not authorized.
@shyland20
@shyland20 6 лет назад
another thing i didn't understand the upload and display routine . so after we set all this account. now lets say i want to embed photo or video it's will be running from wp or from s3 panel? hope you will do a video about the workflow after the setting
@Craigerson
@Craigerson 6 лет назад
The files are still hosted with your web host, but distributed to the Amazon servers. So while the content is technically being served from the Amazon servers, your host (WordPress) is still considered the gold source. Meaning, any time you make a change to one of those files, the Amazon servers will pull that updated content from your WordPress host.
@shyland20
@shyland20 6 лет назад
hi , so there is not automation in process. i need to upload the link to the site and embedded into a post\page. the cloudfront from what i understood need to give you better access closer to the client for better streaming performance . didn't understand how this integration between wordpress and s3\cloudfront help. sorry it's may sound dumm i just didn't get it i do understand you but i'm not native speaker.
@Craigerson
@Craigerson 6 лет назад
There is automation. You upload a file to your WordPress site as you normally do, could be an image, video, HTML, etc... And lets just assume this site is hosted in the U.S. CloudFront has distributed servers all over the world, which lets a visitor to your website in England have your content served to them from the nearest CloudFront server. If you set things up as I explain in this video, using an Origin Pull, the AWS Servers will always be on the lookout for new or changed content (that's the automation). Here's a link that may explain things better: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/HowCloudFrontWorks.html
@shyland20
@shyland20 6 лет назад
thanks for your dedication :-)
@shyland20
@shyland20 6 лет назад
at domain name 10:54 i see my domain mention as .cloudfront.net and not my actual domain so i done something wrong?
@techiesguide2794
@techiesguide2794 6 лет назад
Me also.. Maybe He is missing something.
@asdfkerub
@asdfkerub 5 лет назад
how easy is it to make changes on your site? will it update CDN automatically? Thinking of doing this to one of my sites
@Craigerson
@Craigerson 5 лет назад
Haven’t had any issues with making updates. All changes seem to be propagated to the AWS Servers without issue.
@asdfkerub
@asdfkerub 5 лет назад
@@Craigerson how about CSS changes? At the moment I need to go on CloundFront and revalidate to "refresh" my cdn.
@vidnet5087
@vidnet5087 7 лет назад
Awesome Explanation buddy....i spent a whole night configuring with cloudfront push via w3 total cache, although i did it easily first, but unfortunately it broke the css, logo broken, icon broken, fonts broken....etc...figuring out just blew my head up...somehow managed to bring back logo but this time logo size has increased, nav menu came beneath the logo breaking the alignment...no luck with icons yet.... Well noticed by default in w3 total cahce plugin in "Theme file types to upload": *.otf,*.woff,* semi colon is missing.... edited it still its not coming correct....at last came through this video and decided to shift to cloudfront pull via w3 total cache.... i would appreciate if you make a video on cloudfront push...and find out reason why css, icons etc breaks down......Great Video..
@xameleoninfusion8094
@xameleoninfusion8094 7 лет назад
Hey, I did it with Origin Pull and have exactly the same problem as you. Did you manage to fix it? I don't know what is the reason for this.
@Craigerson
@Craigerson 7 лет назад
That's not a bad idea to create a video using the Push approach. Haven't tried that yet, but I may have to give that a shot.
@filipeneto5738
@filipeneto5738 7 лет назад
You have to set up CORS in your bucket to acept GETs (or another method) via another domain (your site domain, in this case). Check if you uploaded your theme files, not just the child theme files.
@xameleoninfusion8094
@xameleoninfusion8094 7 лет назад
Hey Filipe, I had exactly the same issues like this guy with the only difference is that I did it with Origin Pull. When I explored my bucket, I saw there are no files uploaded. I might be missing the point but noone teaches you to upload your files manually. I always thought it's done automatically when you create a bucket. So, what I did is I downloaded my theme from cpanel and uploaded to my S3 bucket. Now everything loads up. Can you tell me if I this is the right way and if I'm missing out something?
@filipeneto5738
@filipeneto5738 7 лет назад
Hey Never, The main difference between Push and Pull CDN is that when running with Pull, the server (original website) rewrites their URLs to point to CDN. So, when asked for a file, the CDN first 'pull' the file from the orignal server, and then serve it, keeping it on cache until its expires. It is most efficient in term of storage space. Push method is like a mirror of the original server. The user must upload the content to CDN (manually or automatically). It is most efficient in term of traffic use, the content is uploaded only when it is new or was changed. It a little faster than Pull, because Pull method needs to download the file before serve it, when asked for the fist time. Check if your Cloudfront distribution is pointed for your bucket, instead for your site.If so, you can change it to your site (and delete the bucket if you want). Maybe you are 'Origin Pulling' from your s3 bucket.
@AvijitBrahma
@AvijitBrahma 5 лет назад
Font missing
@TheMahdifarhat
@TheMahdifarhat 5 лет назад
can i use cloudflare in the same time?
@Craigerson
@Craigerson 5 лет назад
Haven’t used Cloudfare. Similar solution but I don’t think you would want to use both.
@KitchenbrandStore
@KitchenbrandStore 5 лет назад
as clean as it could be. though still couldn't understand the use of S3 here.
@Craigerson
@Craigerson 5 лет назад
Thank you. I'm with you on the S3 piece, but that's the only way I was able to get it to work. Doesn't seem to add any value.
@filipeneto5738
@filipeneto5738 7 лет назад
Why have you created a bucket if are using cloudfront pull?
@Craigerson
@Craigerson 7 лет назад
For whatever reason, CloudFront seems to be checking for an S3 Bucket to be created. My initial approach was to not create that S3 Bucket, but it wouldn't work until that Bucket was created.
@sureshkumargolkonda8291
@sureshkumargolkonda8291 7 лет назад
Thank you Craigerson Sir for your video. As Filipe asked, how can we configure a S3 bucket as origin to server the content from s3 instead of webserver
@Craigerson
@Craigerson 7 лет назад
Thanks Suresh... Check out my other video on using CloudFront Push. This will load your content to an S3 Bucket and use that as the Origin Server.
@zakariaabali4750
@zakariaabali4750 4 года назад
is this setting uo a cdn for free lifetime ?
@Craigerson
@Craigerson 4 года назад
It’s not free. There’s a cost associated with Amazon’s service based upon how much traffic your website has. Take a look at some of my other video’s, I cover the cost of the CDN related to my setup.
@lopo8000
@lopo8000 3 года назад
damn this just straight destroyed my site lmao thankfully i have backup
@ddrci88
@ddrci88 3 года назад
It’s so sad you left RU-vid :(
@Craigerson
@Craigerson 3 года назад
Haven’t really left. Working on an update to this one with an SSL site.
@ddrci88
@ddrci88 3 года назад
@@Craigerson comon men we missed you. Put some videos Wordpress ec2 or motorcycle anything :))
@michealzak8610
@michealzak8610 5 лет назад
@craigerson. Great tutorial how to add metadata about cache expiry. www.webpagetest.org/result/190611_CB_9a1c542b0563fb49b5511a3d309da444/1/performance_optimization/ website: www.wrecky.com.au/cash-for-cars/ Getting these error on speedtest. FAILED - (No max-age or expires) on images.
@mihalyfreeman5928
@mihalyfreeman5928 2 года назад
Why on earth would you need to create an S3 bucket? You hosting your site off AWS? If not, then there is no purpose to create an S3 bucket. Not only that, you've missed a ton loads of other steps that need to be configured before any of this would work.
@Craigerson
@Craigerson 2 года назад
100% agree with your comment on setting up an S3 Bucket. It’s not needed. When I did this video 5 years ago, that seemed to be the only way I could get things to work. Having said that, I’ve got an updated video coming out this week that will refresh this process. Disagree that I missed a “ton” of other steps. Setting up a CDN using what I’ve laid out here works just fine. I’ve been using this for 5 years on my blogs, and the metrics Amazon provides tells me it’s working.
@tekyhostbr9538
@tekyhostbr9538 3 года назад
this is horrible way of doing it as you giving full access IAM role via this plugin . Not secure
Далее
AWS EC2 Pricing: Hosting A WordPress Blog
6:05
Просмотров 10 тыс.
AWS - CloudFront - CDN - Edge Locations
16:47
Просмотров 21 тыс.
Викторина от ПАПЫ 🆘 | WICSUR #shorts
00:56
AWS Pricing: CloudFront Cost For A Small Blog
9:42
Просмотров 12 тыс.
AWS CloudFront Caching and Behaviors
11:29
Просмотров 8 тыс.
How To Setup Cloudflare CDN (2022) | Tutorial
12:40
Просмотров 4,2 тыс.
#samsung #retrophone #nostalgia #x100
0:14
Просмотров 13 млн