Google Apps / App Engine: https version of naked domain does not redirect

心已入冬 提交于 2019-12-21 20:12:54

问题


I have the following scenario:

  • Website is hosted in AppEngine and we want to force it to always load in https. (we use secure:always in app.yaml)
  • Domain is managed in Google Apps. We have uploaded SNI certificate and all looks good
  • In Google Apps we set the redirect of the naked domain to the www version of it

The following URLs all work:

  • http:// website.com (redirects to https:// www.website.com)
  • http:// www.website.com (redirects to https:// www.website.com)
  • https:// www.website.com (the URL of the app)

However this URL does not redirect and gives an error:

  • https:// website.com

Is this a bug or is this a settings issue?


回答1:


As it is right now, SSL for naked domains does not work directly and this is an expected behavior. This is being tracked as issue 10802. Also, have a look at this question, where they found a workaround to use Naked domains and SSL through Google Apps. An alternative solution is proposed here.



来源:https://stackoverflow.com/questions/28149518/google-apps-app-engine-https-version-of-naked-domain-does-not-redirect

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