SSL configuration with Google AppEngine - redirecting naked domain makes Google Apps bug

被刻印的时光 ゝ 提交于 2019-12-13 05:14:04

问题


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?


回答1:


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...



来源:https://stackoverflow.com/questions/24622339/ssl-configuration-with-google-appengine-redirecting-naked-domain-makes-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!