Я нашел ответ на свой вопрос на следующем сайте:
[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:
www
and click Addwww
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!
[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
Google не предоставляет нам IP-адрес для установки записи A. Если бы это было возможно, мы могли бы использовать голые домены.
Есть другой вариант, установив запись A для IP-адреса внешнего веб-сервера, и этот сервер мог бы сделать http-перенаправление, например, с domain.com на www.domain.com (см. GiDNS )
Еще одно решение, предлагаемое Google, - это переадресация URL: http://www.google.com/support/a/bin/answer.py?hl=en-in&answer= 61057
Если вы, как и я, видели это сообщение, пытаясь добавить 'www 'в качестве поддомена для работы вашего собственного домена:
' Уже используется, сначала удалите предыдущее сопоставление . '
Вышеупомянутый процесс, упомянутый в других ответах, немного изменился, если вы используете Google Apps для своего домена.
Теперь вы также должны сделать это:
Google Apps -> Настройки службы -> Сайты. Щелкните «Сопоставление веб-адресов» и удалите сопоставление «www», которое по умолчанию добавлено в Сайты.
Затем вы можете добавить субдомен www для своего приложения App Engine.
см. Эту ссылку:
http://groups.google.com/group/google-appengine/web/deleting-existing-www -mapping-from-google-apps