使用AWS路线53 HTTP重定向工作,HTTPS超时
问题描述:
使用路由规则这里提到:Set up DNS based URL forwarding in Amazon Route53使用AWS路线53 HTTP重定向工作,HTTPS超时
<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
和路线53 becomethegamer.com
是一个别名与目标作为该桶。
什么可能导致https不重定向?
答
没有,那就是:
网站终端不支持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控制台)作为Origin服务器,并将Route 53指向CloudFront而不是S3。
http://docs.aws.amazon.com/gettingstarted/latest/swh/getting-started-create-cfdist.html
你是我的救星! – Matt