Re:Building a static serverless website using S3 and CloudFront
by tyingq on Monday February 17, 2020 @05:36PM
(#22351567)
You can specify the canonical url in the HTML. Then it's not an issue.
Re:Building a static serverless website using S3 and CloudFront
by lawik on Monday February 17, 2020 @04:14PM
(#22350833)
I run the setup of S3 + Cloudfront and never ran into their index problem because I'm not trying for URLs without document file extensions.
I assume that's the reason for really wanting index redirect in directories. Pretty URLs, I didn't feel the need. There are other valid reasons too I'm sure. But my needs diverged from the article even earlier than SEO penalties.
Re:Building a static serverless website using S3 and CloudFront
by mlmitch on Monday February 17, 2020 @04:28PM
(#22350963)
The pretty URLs thing is confusing me now too. AWS lets you configure the buckets to do the pretty URLs.
https://docs.aws.amazon.com/AmazonS3/latest/dev/HowDoIWebsit... https://docs.aws.amazon.com/AmazonS3/latest/dev/IndexDocumen...
I put up a Jekyll site on s3/cloudfront recently and it seems to work well.
Anyway, I’m still wondering about the consequences of the naked s3 endpoint being available.
“However, the S3 website endpoint is publicly available. Anyone who knows this endpoint can therefore also request your content while bypassing CloudFront. If both URLs are crawled by Google, you risk getting a penalty for duplicate content.”
I’m curious if anyone has experienced these issues in practice.