-1

我正在尝试将我从 1&1 购买的域重定向到 GAE。

现在,我的域正在重定向到我的 appengine 应用程序,但问题是如果我在浏览器的 URL 中写入以下内容:www.mydomain.com,它会被重定向到http://myappid.appspot.com(而不是重定向到http://myappid.appspot.com但在 URL 上显示相同的域 --> www.mydomain.com)。

有谁知道如何在 1&1 上配置它?

这是我的 1&1 配置:

Domain name --> mydomain.com (MX)
Type --> Domain
Destination --> Redirection(http://myappid.appspot.com)
Register --> Public
Status --> Activated
4

3 回答 3

1

You don't need a frame redirect.

(1) Set up a subdomain called "www", and have your naked domain (mydomain.com) redirect to www.mydomain.com as an http redirect.

(2) Sign up for "Google Apps for Business" using "mydomain.com" as your domain.

(3) In the Google Apps dashboard, find "App Engine Apps", and add your app-id.

(4) Click on your app-id and From there you can add additional web addresses for your app. Add "www.mydomain.com" here.

(5) In 1&1 you'll have to update your www.mydomain.com DNS settings as CNAME, with alias "ghs.googlehosted.com"

With all that done, mydomain.com will http redirect to www.mydomain.com, which in turn will alias to ghs.googlehosted.com, which in turn will pull up your app.

You can then cleanly use your domain URIs, ex: "mydomain.com/getPineappleStatus?id=12"

于 2013-06-27T20:18:28.097 回答
0

我找到了解决方案(使用帧重定向)

关联

于 2013-02-26T15:37:29.417 回答
0

官方文档解释了如何设置域以使用 Google 应用引擎。请参阅此处的文档:

https://developers.google.com/appengine/docs/domain

于 2013-02-26T15:13:00.063 回答