要在Route53上使用DNS设置S3上的静态站点,我们有两个选项。
如果我们希望用户inputwww.example.com并通过example.com在地址栏中自动replace,我们将执行以下操作。
example.com ,另一个用于www.example.com 。 我们把www.example.com “所有请求”redirect到example.com而后者有“启用网站托pipe”,当然还有实际的文件。 example.com的托pipe区域,我们得到了两个logging集:一个NS和另一个SOA。 我们设置了第三个名称为example.com的别名logging集,并将值设置为UI提供的值。 我们还设置了名为www.example.com和Value: example.com的第四个CNAME。 这样可行!
现在假设我们想做相反的事情。
如果我们希望用户inputexample.com并通过www.example.com在地址栏中自动replace,我预计下面是配方。
example.com ,另一个用于www.example.com 。 我们将“ example.com ”中的所有请求redirect到www.example.com而后者则“启用网站托pipe”以及实际文件。 example.com的托pipe区域,我们得到了两个logging集:一个NS和另一个SOA。 我们设置了第三个名为www.example.com的别名logging集,并将值设置为由用户界面提供的值。 这不起作用。
我错过了什么?
您错过了example.com的别名logging集,该logging集指向包含redirect的S3存储区example.com 。