I want to host many websites from inside individual directories of a single S3 bucket and have them linked to three different domains on Fastly like so:
site-1.com => s3-us-west-2.amazonaws.com/my-bucket/site-1/index.html site-2.com => s3-us-west-2.amazonaws.com/my-bucket/site-2/index.html site-3.com => s3-us-west-2.amazonaws.com/my-bucket/site-3/index.html ... site-n.com => some-bucket/site-n/index.html
I can do this using Cloudfront because its distributions support an additional path option which can route the request to the correct sub-directory inside the bucket. I don’t see a way to do this on Fastly and want to ask if anyone knows how this can be done?
Please sign in to leave a comment.