1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
1
CloudFront supports the root of the origin that your distribution is directed towards, but it doesn't work for subdirectories.
If you want the CloudFront distribution to reach the subdirectory, then you can use Lambda@Edge (Extra charge).
Here is a blog with more information: https://aws.amazon.com/blogs/compute/implementing-default-directory-indexes-in-amazon-s3-backed-amazon-cloudfront-origins-using-lambdaedge/
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 2 Jahren
Where is Cloudfront pointing to? EC2? S3? Could you provide screenshot of the Distribution?
You'll need to provide some additional information to help determine the root cause of the problem. What exactly do you mean by "it doesn't work?" Is there an error message or code? What do you see in your web server access logs?