【问题标题】:Using AWS Route 53 http redirect working, https times out使用 AWS Route 53 http 重定向工作,https 超时
【发布时间】:2016-04-28 04:44:24
【问题描述】:

使用这里提到的路由规则:Set up DNS based URL forwarding in Amazon Route53

<RoutingRules>
    <RoutingRule>
        <Redirect>
            <Protocol>https</Protocol>
            <HostName>dota2.becomethegamer.com</HostName>
            <HttpRedirectCode>301</HttpRedirectCode>
        </Redirect>
    </RoutingRule>
</RoutingRules>

我可以看到 http://becomethegamer.com 正确重定向到 https://dota2.becomethegamer.com 但 https://becomethegamer.com 超时。

我以为是Protocol 部分,但意识到这是出站而不是入站。

这是在一个名为 becomethegamer.com 的bucked 中,而在 Route 53 中,becomethegamer.com 是一个别名,目标是该存储桶。

什么可能导致 https 无法重定向?

【问题讨论】:

    标签: https dns routing amazon-route53


    【解决方案1】:

    不,是这样的:

    网站端点不支持 https。

    http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html

    你不能不说 https 就重定向一个 https 请求,此外,你需要一个对主机名有效的 SSL 证书。

    您仍然可以做您想做的事,但您需要在前面使用 CloudFront,在后面使用 S3。您的 S3 重定向配置保持不变,但您将创建一个 CloudFront 分配,在那里将您的域名配置为备用域名,将您的 SSL 证书加载到 CloudFront,使用 bucket-name.s3-website-xx-xxxx-xx .amazonaws.com 网站端点(来自 S3 控制台)作为源服务器,并将 Route 53 指向 CloudFront 而不是 S3。

    http://docs.aws.amazon.com/gettingstarted/latest/swh/getting-started-create-cfdist.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-16
      • 2017-06-02
      • 2020-02-01
      • 2014-11-18
      • 1970-01-01
      • 1970-01-01
      • 2021-05-30
      • 1970-01-01
      相关资源
      最近更新 更多