36
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Route53 + S3 を使った任意の URL へのリダイレクト

Posted at

やりたいこと

問題

  • Route 53 の CNAME は subdir1/subdir.htmlへの転送ができない。

どうやるか

S3

  1. S3 に my.domain という名前のバケットを作成
  2. Properties から Static Website Hosting
  3. Redirect all requests to another host name をクリック
  4. Redirect all requests to に aaa.bbb.ccc/subdir1/subdir2.html
  5. Endpoint: my.domain.s3????.amazonaws.com をメモ

Route 53

  1. Create Hosted Zone で my.domain を設定 (DNSの設定などは他ページ参照)
  2. my.domain への CNAME 設定を上の5に設定

なぜうまくいくのか

これで、http://my.domain へのアクセスが Route 53 を経由して
my.domain.s3???.amazonaws.com に転送されて、
S3 の転送サービスで http://aaa.bbb.ccc/subdir1/subdir2.html
転送される。

36
29
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
36
29

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?