AWS cloudfront + S3 result in 503 error - S3 to serve HTML

 Quick note:

  • If you are serving HTML/CSS/JS/Any image files via AWS S3 with Cloudfront, but got 503 error, here is one way to solve:

    • Simply put: In Viewer request, set cloudfront function to "serve-html-by-s3"
    • Set Viewer repsonse to "No association"
      • Setting Viewer response to value other than "No association" will result in 503 error.
Hope it helps someone.

Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

How to fix fancy box/Easy Fancybox scroll not work in mobile

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services