Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services S3 Bucket子文件夹中的Host index.html_Amazon Web Services_Amazon S3_Amazon - Fatal编程技术网

Amazon web services S3 Bucket子文件夹中的Host index.html

Amazon web services S3 Bucket子文件夹中的Host index.html,amazon-web-services,amazon-s3,amazon,Amazon Web Services,Amazon S3,Amazon,静态网站托管在根目录中工作,但这对我不起作用: my.bucket/index.html my.bucket/subfolder/index.html 工作如期进行 不工作(访问被拒绝) 这可能吗?您还需要修改子文件夹的权限以使其可公开访问 访问AWS中托管的静态网站(至少)有三种方法 S3存储桶名称 CDN名称。(这是“托管静态网站”向导告诉您使用的) S3 bucket管理页面上列出的“静态网站托管端点” 只有“静态网站托管端点”过滤传入请求,以提供类似Apache的行为;S3是一个R

静态网站托管在根目录中工作,但这对我不起作用:

my.bucket/index.html
my.bucket/subfolder/index.html
工作如期进行

不工作(访问被拒绝)


这可能吗?

您还需要修改子文件夹的权限以使其可公开访问

访问AWS中托管的静态网站(至少)有三种方法

  • S3存储桶名称
  • CDN名称。(这是“托管静态网站”向导告诉您使用的)
  • S3 bucket管理页面上列出的“静态网站托管端点”
只有“静态网站托管端点”过滤传入请求,以提供类似Apache的行为;S3是一个RESTful API,用于存储没有子文件夹概念的文件


如果您使用过该向导,屏幕左下角会有一个小文本“Manage file in S3”,它会在控制台中为您打开正确的页面,然后单击“properties”按钮。

S3-eu-west-1.amazonaws.com/my.bucket/subfolder/index.html是否有效?my.bucket.s3-eu-west-1.amazonaws.com/subfolder/index.html怎么样?正确呈现页面my.bucket.s3-eu-west-1.amazonaws.com/subfolder/index.html访问被拒绝!您应该使用
http://your.bucket.s3-website-eu-west-1.amazonaws.com/...
如果您想要网站托管功能,包括索引文档。已经这样做了(否则我将无法直接访问它?)