Heroku的SSL与Route53 [英] Heroku SSL with Route53
问题描述
我的SSL证书的所有设置和准备去在Heroku上。我跟着指示在这里 https://devcenter.heroku.com/articles/route-53正确使用重定向AWS S3请求(例如:example.com至www.example.com)。 HTTPS的伟大工程时requestiong https://www.example.com ;但是,如果我试图要求 https://example.com ,该页面无法找到。有什么想法?
My SSL certificate is all set up and ready to go on Heroku. I followed the instructions here https://devcenter.heroku.com/articles/route-53 to correctly redirect requests (e.g. example.com to www.example.com) using AWS S3. HTTPS works great when requestiong https://www.example.com; however, if I attempt to request https://example.com, the page cannot be found. Any thoughts?
推荐答案
使用路线53,你要创建以下DNS记录:
Using Route 53, you want to create the following DNS records:
- www.example.com
CNAME
your_app.herokuapp.com - example.com
ALIAS
your_app.herokuapp.com
- www.example.com
CNAME
your_app.herokuapp.com - example.com
ALIAS
your_app.herokuapp.com
您 www.example.com
主机名应该是 CNAME
记录委托给你的Heroku应用程序的主机名。任何其他正规主机名应该是 CNAME
秒。
Your www.example.com
hostname should be a CNAME
record that delegates to your Heroku App hostname. Any other regular hostnames should be CNAME
s.
在 example.com
顶点或裸域记录必须返回一个 A
记录并不能一个 CNAME
。 Route53实现了 ALIAS
记录类型,其中中查找值 your_app.herokuapp.com
键,返回一组电流 A
的记录进行匹配。
The example.com
"Apex" or "naked domain" record must return an A
record and cannot be a CNAME
. Route53 implements the ALIAS
record type, which looks up the values for your_app.herokuapp.com
and returns a set of current A
records to match.
这篇关于Heroku的SSL与Route53的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!