gpt4 book ai didi

google-app-engine - 使用 Google App Engine 进行 SSL 配置 - 重定向裸域会导致 Google Apps 出现错误

转载 作者:太空宇宙 更新时间:2023-11-03 14:59:27 25 4
gpt4 key购买 nike

我已经在 AppEngine 上创建了一个应用程序,并在 Google Apps 上设置了我的自定义域名。既有裸域enter link description here名称和 www 子域运行良好。

当我想设置 SSL 时,问题就开始了。

我有域的证书:www.mydomain.com,该设置在 Google Apps 中运行良好。我还将我的 app.yaml 配置为 secure: always,所以所有请求到 http://www.mydomain.com转到 https://www.mydomain.com , 一切都很好。

当所有这些工作正常时,对裸域的请求:http://mydomain.com重定向到 https://mydomain.com , 并且失败了,因为谷歌不支持裸域上的 SSL 证书(也因为我只为 www.mydomain.com 颁发了我的证书)

所以现在我想重定向我的裸域 http://mydomain.comhttp://www.mydomain.com ,它应该像魔术一样工作。为此,我遵循 the instructions here ,链接到此页面:'Enable your "naked" domain address' .

但是按照这些简单的说明,这是我得到的错误(见屏幕截图): enter image description here enter image description here enter image description here

知道如何将裸域重定向到 www 子域吗?

最佳答案

wwwizer.com 似乎可以解决问题。

我刚刚在我的域管理器的 DNS 条目中创建了一个指向 wwizer 的 IP 的简单 A 记录,它正在运行。免费。

http(s)://mydomain.com 现在正确重定向到 https://www.mydomain.com

希望 AppEngine 会在某个时候添加对此的原生支持...

关于google-app-engine - 使用 Google App Engine 进行 SSL 配置 - 重定向裸域会导致 Google Apps 出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24622339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com