GAE添加SSL通配符证书后自定义域映射失败 [英] GAE Custom domain mapping failure after adding SSL Wildcard certificate

查看:184
本文介绍了GAE添加SSL通配符证书后自定义域映射失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Google App Engine中有三个项目,每个项目都有一个自定义子域名映射到它:


  • 项目A:projecta.domain.com

  • 项目B:projectb.domain.com

  • 项目C:projectc.domain.com



  • 直到我们为项目A添加了一个通配符ssl-certificate之后,这一切运行良好。突然之间,所有三个子域都映射到项目A.



    它们出现在项目A的自定义域(项目A-> App Engine->设置 - >自定义域)下,而不是在每个项目B和项目C下以及浏览到项目b时。 domain.com和projectc.domain.com,我们从projecta.domain.com获取内容,而不是从b和c获取内容。



    我们已经尝试过,但没有一个能够解决问题:


    • 已删除SSL证书

    • 删除所有自定义域并重新添加它们

    • 禁用所有项目,删除所有域,再次添加
      和启用项目

    • 以不同的用户身份登录,再次验证域名,添加/删除等等



    <我们还有第四个项目Project D(projectd.domain.com),这个项目很奇怪还没有受到影响,仍然有效。
  • 尝试在项目B或C(项目[B / C] - > App Engine->设置 - >自定义域)下添加自定义域时,单击添加按钮不会给出任何答复。检查网络时,点击会对控制台服务器进行调用,并且在检查项目A(App Engine-> Settings-> Custom Domains)时,自定义域名已经出现在那里。



编辑1:
在每个项目中删除所有自定义域后,自定义域projectb.domain.com到项目B,我们得到这个错误消息这个域指向另一个应用程序,如果你指向这个应用程序,其他应用程序将停止工作。但它不会出现在任何其他应用程序。

编辑2:
删除每个项目中的所有自定义域后,添加projectb.domain .com到项目B首先,什么也没有出现。但是,之后将projecta.domain.com添加到项目A时,项目b和项目a都会出现在项目B下。并且在尝试从projectb中删除项目时,会出现错误消息错误。无法删除映射。这里真的有点不对劲。


有谁知道如何以任何其他方式访问域映射设置?它接缝像域映射数据已损坏,我们被困住。



编辑3:
一些未知的原因,一切正常经过8个小时的尝试和失败之后,我不知道为什么。突然之间,我可以删除所有的自定义域名,当我添加它们时,它们出现在正确的项目下。我以前几次试过完全一样的东西。但是,当我现在再次添加SSL证书时,每个自定义域映射自己从他们自己的项目中移动到我将SSL证书添加到的项目中。可以以某种方式SSL证书更改域映射吗?

解决方案

我找到了一个解决方案!在添加自定义域并在不同项目中正确连接SSL证书时,Google App Engine控制台中存在一个错误。

/ b>

重现此错误的步骤:


  1. 在工具栏中选择一个项目

  2. 转到App Engine->设置 - >自定义域,按添加自定义域后,添加一个子域并按下添加 / li>
  3. 没有任何反应,但是当返回到自定义域名时,新的子域出现在那里

  4. 在工具栏中更改项目

  5. 点击自定义域名,按添加自定义域名。

  6. 添加子域名并点击添加

    在步骤6中添加的域现在实际上已映射到在步骤1中选择的项目。

    解决方法

    在步骤5和6之间在浏览器中刷新页面。

    CONNECT WILDC的几个项目ARD SSL-CERTIFICATE b
    $ b

    重现此错误的步骤



    1. 上传通配符SSL证书后

    2. 在工具栏中选择一个项目
    3. 转到App Engine-> Settings-> SSL证书

    4. 点击您的SSL证书,然后检查域名并点击保存

    5. 更改工具栏中的项目

    6. 点击SSL证书,

    7. 点击您的SSL证书,然后查看域名并点击保存 ol>

      先前连接到步骤5中选择的项目的自定义域现在被添加到步骤2中选择的项目中。



      解决方法



      在步骤6和7之间在浏览器中刷新页面。


      We have three projects in Google App Engine, each of them have a custom sub-domain name mapped to it like this:

      • Project A: projecta.domain.com
      • Project B: projectb.domain.com
      • Project C: projectc.domain.com

      That worked very well until we added a wildcard ssl-certificate to Project A. Suddenly all three subdomains are mapped to Project A.

      They appeared under Project A, custom domains (Project A->App Engine->Settings->Custom Domains) and not one under each Project B and Project C, and when browsing to projectb.domain.com and projectc.domain.com, we get content from projecta.domain.com and not from b and c.

      We have tried this but none of it fixes the problem:

      • Removed the SSL-certificate
      • Removed all custom domains and added them again
      • Disabled all projects, removed all domains, added them again and enabled the projects
      • Logged in as different users, verify the domain again, add/remove etc

      Two more notes:

      • We also have a fourth project, Project D (projectd.domain.com), which strange enough has not been affected and still works.
      • When trying to add a custom domain under project B or C (Project [B/C]->App Engine->Settings->Custom Domains), clicking on Add button does not give any response at all. Checking network, the click performs a call to Console servers, and when checking Project A (App Engine->Settings->Custom Domains), the custom domain name has appeared there instead.

      Edit 1: After deleting all custom domains in every project, when trying to add custom domain projectb.domain.com to Project B, we get this error message "This domain points to another app. If you point it to this app, the other app will stop working." But it does not appear in any another app. After confirming domain is not added.

      Edit 2: After deleting all custom domains in every project, when adding projectb.domain.com to Project B first, nothing appears. But when adding projecta.domain.com to Project A afterwards, both projectb and projecta appears under Project B. And when trying to delete projecta from projectb, we get the error message "Error. Failed to delete mapping.". Something is really wrong here.

      Does anyone know how to access the domain mappings settings in any other way? It seams like the domain mapping data has been corrupted and we are stucked.

      Edit 3: For some unknown reason everything worked again after 8 hours of trying and failing, and I have no idea why. Suddenly I could delete all custom domains and when I added them they appear under the correct project. I've tried the exact same thing several times before. However, when I now add the SSL-certificate again every custom domain mapping moved by itself from their own project to the very project I added the SSL certificate to. Can somehow the SSL-certificate change the domain mappings?

      解决方案

      I found a solution! There is a bug in Google App Engine Console when adding custom domains and connect to a ssl-certificate in different project right after each other.

      ADDING CUSTOM DOMAINS

      Steps to reproduce the bug:

      1. Select a project in the toolbar
      2. Goto App Engine->Settings->Custom Domains and after pressing "Add Custom Domain", add a sub-domain and press "Add"
      3. Nothing happens, but when going back to "Custom Domains" the new subdomain appears there
      4. Change project in the toolbar
      5. Click on "Custom Domains", press "Add Custom Domain"
      6. Add a sub-domain and press "Add"

      The domain added in step 6 is now in fact mapped to the project selected in step 1.

      Workaround

      Make a page refresh in the browser between step 5 and 6.

      CONNECT SEVERAL PROJECT TO WILDCARD SSL-CERTIFICATE

      Steps to reproduce the bug

      1. After uploading a Wildcard SSL-certificate
      2. Select a project in the toolbar
      3. Goto App Engine->Settings->SSL Certificate
      4. Click on your SSL-certificate, then check the domain and press "Save"
      5. Change project in the toolbar
      6. Click on "SSL Certificate",
      7. Click on your SSL-certificate, then check the domain and press "Save"

      The custom domain previously connected to the project selected in step 5 is now added to the project selected in step 2.

      Workaround

      Make a page refresh in the browser between step 6 and 7.

      这篇关于GAE添加SSL通配符证书后自定义域映射失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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