如何禁用Amazon Cloudfront中的目录列表?

时间:2021-04-20 00:12:26

I have an S3 bucket. When accessing its root URL via https://s3.amazonaws.com/... it tells me Access denied.

我有一个S3桶。通过https://s3.amazonaws.com / ...访问其根URL时,它告诉我访问被拒绝。

The S3 bucket has no permission rules defined for Everyone.

S3存储桶没有为Everyone定义的权限规则。

However, accessing the same bucket via our Cloudfront Domain Name a full ListBucketResult is being returned.

但是,通过我们的Cloudfront域名访问同一个存储桶时,将返回一个完整的ListBucketResult。

Cloudfront is giving a full directory listing, which we want to prevent.

Cloudfront提供了一个完整的目录列表,我们希望阻止它。

How can I disable that listing via Cloudfront?

如何通过Cloudfront禁用该列表?

I tried doing it be invalidating all objects (*) in Cloudfront, without effect.

我尝试在Cloudfront中使所有对象(*)无效,但没有效果。

1 个解决方案

#1


8  

Did you already get it? If not, you can try setting Default Root object for your cloudfront distribution.

你已经知道了吗?如果没有,您可以尝试为您的Cloudfront分发设置默认根对象。

#1


8  

Did you already get it? If not, you can try setting Default Root object for your cloudfront distribution.

你已经知道了吗?如果没有,您可以尝试为您的Cloudfront分发设置默认根对象。