Как использовать Google App Engine с моим собственным явным доменом (не субдомен)?

Я нашел ответ на свой вопрос на следующем сайте:

Интеграция генератора кода с CMake

233
задан Methkal Khalawi 9 October 2019 в 23:04
поделиться

5 ответов

[Update April 2016] This answer is now outdated, custom naked domain mapping is supported, see Lawrence Mok's answer.

I have figured it out!

First off: it is impossible to link something like mydomain.com with your appspot app. This is considered a naked domain, which is not supported by Google App Engine (anymore). Strictly speaking, the answer to my question has to be "impossible". Read on...

All you can do is add subdomains pointing to your app, e.g myappid.mydomain.com. The key to get your top level domain linked to your app is to realize that www is a subdomain like any other!

myappid.mydomain.com is treated exactly the same as www.mydomain.com!

Here are the steps:

  1. Go to appengine.google.com, open your app
  2. Administration > Versions > Add Domain... (your domain has to be linked to your Google Apps account, follow the steps to do that including the domain verification.)
  3. Go to www.google.com/a/yourdomain.com
  4. Dashboard > your app should be listed here. Click on it.
  5. myappid settings page > Web address > Add new URL
  6. Simply enter www and click Add
  7. Using your domain hosting provider's web interface, add a CNAME for www for your domain and point to ghs.googlehosted.com

Now you have www.mydomain.com linked to your app.

I wished this would have been more obvious in the documentation...Good luck!

257
ответ дан 23 November 2019 в 03:32
поделиться

[Update April 2016] This answer is now outdated, custom naked domain mapping is supported, see Lawrence Mok's answer.

See http://www.google.com/support/a/bin/answer.py?hl=en&answer=91077 for the details. Once you have signed up for Google Apps for Your Domain:

# Sign in to the Google App Engine admin console.
# Go to Administration > Versions
# Click the 'Add Domain...' button under Domain Setup.
# Enter your domain name in the 'Domain Name:' field
# Click 'Add Domain'. You will be directed to the Google Apps administrator console to complete the process.
# Log in to the Google Apps control panel with your administrator account.
# Accept the terms and specify the access URL you'd like to provide for your application.
# Click 'Accept

You can't use a naked domain, though, such as whatever.com (but www.whatever.com does work), because:

Due to recent changes, Google App Engine no longer supports mapping your app to a naked domain. If your domain registrar supports URL redirects, you can redirect from http://yourdomain.com to your app, which can be served from domains like http://www.yourdomain.com or http://appid.yourdomain.com.

as specified at http://www.google.com/support/a/bin/answer.py?answer=91080

41
ответ дан 23 November 2019 в 03:32
поделиться

Google не предоставляет нам IP-адрес для установки записи A. Если бы это было возможно, мы могли бы использовать голые домены.

Есть другой вариант, установив запись A для IP-адреса внешнего веб-сервера, и этот сервер мог бы сделать http-перенаправление, например, с domain.com на www.domain.com (см. GiDNS )

5
ответ дан 23 November 2019 в 03:32
поделиться

Еще одно решение, предлагаемое Google, - это переадресация URL: http://www.google.com/support/a/bin/answer.py?hl=en-in&answer= 61057

9
ответ дан 23 November 2019 в 03:32
поделиться

Если вы, как и я, видели это сообщение, пытаясь добавить 'www 'в качестве поддомена для работы вашего собственного домена:

' Уже используется, сначала удалите предыдущее сопоставление . '

Вышеупомянутый процесс, упомянутый в других ответах, немного изменился, если вы используете Google Apps для своего домена.

Теперь вы также должны сделать это:

Google Apps -> Настройки службы -> Сайты. Щелкните «Сопоставление веб-адресов» и удалите сопоставление «www», которое по умолчанию добавлено в Сайты.

Затем вы можете добавить субдомен www для своего приложения App Engine.

см. Эту ссылку:

http://groups.google.com/group/google-appengine/web/deleting-existing-www -mapping-from-google-apps

18
ответ дан 23 November 2019 в 03:32
поделиться
Другие вопросы по тегам:

Похожие вопросы: