Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using server side includes or ssi ,AWS S3

Is there any way to use ssi on cloudfront or or is it categorized as dynamic content? I would like to have sections like a header, nav or sidebar be able to use one file.

example:i have some html files,they use the same "header" section,i only want to change "header.shtml" and all files will change. The html files sotrge with S3.

enter code here<!--#include virtual="/includes/header.shtml" -->
like image 305
user2688100 Avatar asked Aug 28 '13 09:08

user2688100


1 Answers

Amazon S3 does not support SSI. All content hosted on S3 is static content.

You could process the files locally before you upload them to S3 and handle any code includes. Then, once you have the final version, just upload that to S3.

like image 151
dcro Avatar answered Sep 26 '22 04:09

dcro