如何将域名指向 S3 对象?
How to point domain names to S3 objects?
我想在单个 S3 存储桶中创建多个网页并通过不同域访问它们。
比如我有S3对象:
- /my-bucket/page1/index.html
- /my-bucket/page2/index.html
- /my-bucket/page3/index.html
可以这样访问:
- https://s3.amazonaws.com/my-bucket/page1/index.html
- https://s3.amazonaws.com/my-bucket/page2/index.html
- https://s3.amazonaws.com/my-bucket/page3/index.html
是否可以按域访问那些 S3 对象:
是的,这是可能的。由于您实际上是在尝试在单个 s3 存储桶中创建多个网站,因此您需要使用 cloudfront 来完成此操作。
比设置单个 s3 存储桶静态网站要复杂一些,但使用许多 examples/directions aws 并不难。
我想在单个 S3 存储桶中创建多个网页并通过不同域访问它们。
比如我有S3对象:
- /my-bucket/page1/index.html
- /my-bucket/page2/index.html
- /my-bucket/page3/index.html
可以这样访问:
- https://s3.amazonaws.com/my-bucket/page1/index.html
- https://s3.amazonaws.com/my-bucket/page2/index.html
- https://s3.amazonaws.com/my-bucket/page3/index.html
是否可以按域访问那些 S3 对象:
是的,这是可能的。由于您实际上是在尝试在单个 s3 存储桶中创建多个网站,因此您需要使用 cloudfront 来完成此操作。
比设置单个 s3 存储桶静态网站要复杂一些,但使用许多 examples/directions aws 并不难。