Google AppEngine的SSL配置 - 重定向裸域会导致Google Apps错误 [英] SSL configuration with Google AppEngine - redirecting naked domain makes Google Apps bug

查看:146
本文介绍了Google AppEngine的SSL配置 - 重定向裸域会导致Google Apps错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在AppEngine上创建了一个应用,并在Google Apps上设置了我的自定义域名。裸域



希望AppEngine能够在某些时候为此添加本机支持...


I have created an app on AppEngine, and setup my custom domain name on Google Apps. Both the naked domainenter link description here name and www subdomain work well.

The issues start when I want to setup SSL.

I have a certificate for the domain: www.mydomain.com, and the setup worked well in Google Apps. I also configured my app.yaml to secure: always, so all requests to http://www.mydomain.com go to https://www.mydomain.com, and all is well.

While all this is working, a request to the naked domain: http://mydomain.com redirects to https://mydomain.com, and fails because Google doesn't support SSL certificates on naked domains (also because I issued my certificate only for www.mydomain.com)

So now I want to redirect my naked domain http://mydomain.com to http://www.mydomain.com, and it should all work like magic. To do this, I follow the instructions here, which links to this page: 'Enable your "naked" domain address'.

But following those simple instructions, here is the error I get (see screenshots):

Any idea how to make the naked domain redirect to the www subdomain?

解决方案

It looks like wwwizer.com does the trick.

I just created a simple A record pointing to wwwizer's IP in the DNS entries of my domain manager, and it's working. For free.

http(s)://mydomain.com now redirects properly to https://www.mydomain.com

Hopefully AppEngine will add native support for this at some point...

这篇关于Google AppEngine的SSL配置 - 重定向裸域会导致Google Apps错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆