目标
我做了什么
essbap.org
通过Godaddy购买。Cloudflare:
rapid
以指向ebcc-rrn.herokuapp.com
rapid.essbap.org
到ebcc-rrn.herokuapp.com
Heroku:
heroku domains:add rapid.essbap.org
=== ebcc-rrn Heroku Domain
ebcc-rrn.herokuapp.com
=== ebcc-rrn Custom Domains
Domain Name DNS Target
---------------- ----------------------
rapid.essbap.org ebcc-rrn.herokuapp.com
$ host rapid.essbap.org
rapid.essbap.org has address 104.27.162.137
rapid.essbap.org has address 104.27.163.137
Cloudflare设置
刚刚添加:
连续卷曲
当我curl
针对另一个我知道可以运行的Heroku自定义域应用程序运行时,它看起来像:
$ curl -I some.custom_app.com
HTTP/1.1 301 Moved Permanently
Location: https://some.custom_app.com/
# since I'm using force_ssl on Rails, we expect to be directed to https://
$ curl -I https://some.custom_app.com/
HTTP/1.1 200 OK
的行为类似ebcc-rrn.herokuapp.com
(我们希望rapid.essbap.org
成为Herokuapp的别名)。A 301,然后200。
但是当我遇到curl
时rapid.essbap.org
,我得到:
$ curl -I rapid.essbap.org
HTTP/1.1 301 Moved Permanently
Location: https://rapid.essbap.org/
# since I'm using force_ssl on Rails, we expect to be directed to https://
$ curl -I https://rapid.essbap.org
HTTP/1.1 301 Moved Permanently
Location: https://rapid.essbap.org/
在第二种情况下,我们得到301而不是200。不知道为什么要生成301。在dev或with中不会发生ebcc-rrn.herokuapp.com
。
我想念什么?
不幸的是,没有最终的解决方案(但要感谢Heroku的技术帮助)。
通过回滚并重试来解决问题:
现在所有工作都按计划进行。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句