http - 带有 cloudflare 的 Heroku 子域“重定向太多”
问题描述
我有三个 heroku 应用程序,都在同一个域下,两个是子域。
- example.com 工作正常
- admin.example.com 工作正常
- dev.example.com 不起作用,并以 301 状态给出“重定向过多”
- admin 和 dev 设置相同
这是我的heroku设置:
还有我的 cloudflare 设置:
SO上的一些答案建议在cloudflare上将SSL更改为“完整”而不是“灵活”,但这会导致525只能通过使用原始证书来解决。我的爱好 dyno 是用于生产的,我不想支付额外的费用来调试应该自己运行的东西(不能在免费应用程序上使用 SSL)。
解决方案
推荐阅读
- azure-devops - 如何从 Azure DevOps Services REST API 获取可用的区域路径?
- java - 为什么我的 forloop 的打印语句,找不到我的枚举角色?
- html - 为什么我的控件没有分成每行 3 个控件?
- python - 有没有办法使用 numpy 的数组索引对列执行多项检查?
- linux - bash 生成没有特殊字符的安全密码
- python - 在 pandas 或 numpy 中,我们可以在行上设置一个标志来进行矢量化并将其用于下一行计算
- c# - 使用 ASP.NET Core Web API 的 Facebook JWT 身份验证
- python - 使用 Python 请求对 magiccardmarket 进行 OAuth 身份验证
- javascript - 为什么 $(window).on('beforeunload', callback); 更新到 73.0.3683.103 后不再在 Chrome 中触发我的 ajax 调用?
- python - 如何将此日期和时间格式转换为日期时间?