[英]Hosting a Static website in S3 Bucket Folder
I am trying to host static websites on S3.我正在尝试在 S3 上托管静态网站。 I know how to do it using S3 buckets ( Link )
我知道如何使用 S3 存储桶( 链接)
Question:题:
Can I do it using S3 folder instead of S3 bucket?我可以使用 S3 文件夹而不是 S3 存储桶吗? So that I don't have to create a new bucket when I want to host a static site and simply host it by creating a new folder in the same bucket.
因此,当我想托管静态站点时不必创建新存储桶,只需在同一个存储桶中创建一个新文件夹即可托管它。
If you want to point a custom domain name to the site you are hosting in S3, then the bucket name must match the domain name, so you can't have multiple sites with multiple domains in the same bucket.如果您想将自定义域名指向您在 S3 中托管的站点,则存储桶名称必须与域名匹配,因此您不能在同一个存储桶中拥有多个站点和多个域。 Also, the static site hosting settings are at the bucket level not the "folder" level.
此外,静态站点托管设置位于存储桶级别而不是“文件夹”级别。 NOTE: There is actually no such thing as a folder in S3, just key prefixes.
注意: S3 中实际上没有文件夹这样的东西,只有键前缀。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.