STONEDSOUL

I wish I could give you meaningful additions

Google Apps のサブドメインに "www" を使う

Google Page Craetor の終了に伴い、下のページに書いたように静的ファイルのホスティングを Google App Engine に移行した。

移行の際、GAE には “www” というサブドメインを割当て、Page Creator の使用を停止した(無効にした)。 それで問題なく動いていたのだが、去年の 12 月に Google が Page Creator のコンテンツを Google Sites に移行させてからおかしくなった。

Page Creator で作ったページが Sites に復活し、GAE で使っているサブドメイン “www” を割当てられたので、 コンテンツが移行された後、GAE にホスティングしたファイルにアクセスできなくなった。さらに Sites の web address mapping から “www” を削除して、Page Creator から移行されたページを削除しても、 GAE の方には “www” でアクセスできなくなったままだった。

最近になって、下の Help トピックを見つけて解決できたので、メモしておく。

一言で言うと、一度 “www” をスタートページのサブドメインにしてから、別のものにすれば 他のアプリケーション (GAE など) で使えるようになる。

実際にやった手順は以下の通り。

  1. Google Sites の Web Address Mapping から “www” を削除 (Page Creator のコンテンツも削除した)
  2. DNS の設定から、”www” を削除 (これと、4 は必要ないかもしれない)
  3. スタートページのサブドメインに “www” を割り当てる
  4. DNS の設定で “www” の CNAME レコードに “ghs.google.com.” を割り当てる
  5. スタートページのサブドメインを他のものに変更 (“start” など)
  6. GAE の Web Address Setting で “www” を設定 (www.example.com)

Using "www" for subdomain of Google Apps

Due to temination of Google Page Creator, I moved hosting of static files to Google App Engine as I wrote the following article.

When I moved to App Engine, I set up “www” to the subdomain for GAE. And I disable Page Creator on my Google Apps Account. It has worked as expected… until Google migrate page creator contents to Google Sites last December.

Google revived my Page Creator contens in Google Sites, and assigned “www” as the subdomain of Google Apps, that prevented access to my GAE contents. Moreover, even though I removed “www” from web address mapping of Sites, I couldn’t resolve the problem to access to my GAE contens with subdomain “www’.

Now I could fix the problem lately, according to the following help topic (Japanese) of Google Apps, here is the notes.

In short, to use “www” as submain of Google Apps, assign “www” to Start Page, and then change subdomain of Start Page, asign “www” to another Apps.

Here is the exact steps to assign “www” to GAE in my case.

  1. Remove “www” from Google Sites addresss mapping (removed page creator contents from Sites too)
  2. Remove “www” from my DNS settings (You might not need this step and step 4)
  3. Assign “www” to Start Page of my Google Apps
  4. Set up “www” to CNAME record (points to “ghs.google.com.”)
  5. Change subdomain of Start Page (e.g., “start” or something)
  6. Assign “www” to GAE (web address setting)

powered by Tumblr