Hosting WordPress on AWS EC2 using CloudFront Dynamic Content Origins for page content

Is it possible to completely host WordPress on AWS with EC2, S3 and CloudFront Dynamic Content Origins, in the way that WordPress is currently built / architected?

Further Details:

Read More

I would like to install my WordPress on an EC2 instance.

Store all my assets: images, videos and download etc on S3

And use CloudFront Dynamic Content Origins serve the pages and posts from the WordPress website.

Therefore making is very quick for page load and only needing a very small EC2 instance, because all content is cached in CloudFront.

Read more

N.B. CloudFront does not support POST HTTP method

Notes

  • Please do not suggest plugins that only stores assets on S3
  • Please do not suggest that I rewriting WordPress to make this work

Related posts

Leave a Reply

2 comments

  1. Yes.

    Cloudfront is just a caching proxy to your content not different from any other cache on the internet. AFAICT If you set up your cache headers properly it will cache automatically your content.

    The difficult part in caching is to know what not to cache and to invalidate the cache when there was a change. You can look at how the caching plugins (super-cache and w3tc) work and try to use similar settings for cloud front.