Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Website hosting in specific folder on AWS S3

Is there any way on AWS S3 to host a website inside a specific folder ?

Example: http://my-bucket.s3-website-us-west-2.amazonaws.com/ pointing to /build folder.

Thanks in advance,

Pierre

like image 572
Pierre Avatar asked Dec 18 '22 20:12

Pierre


1 Answers

Yes. You can.

If you integrate with AWS CloudFront, you will set the CloudFront distribution's Origin Domain Name as your S3 Bucket's Static Website Hosting Endpoint and the Origin Path to the index.html file inside the build folder.

like image 181
filipebarretto Avatar answered Jan 03 '23 05:01

filipebarretto