"www" address of website

0

I registered a website with Route 53 and hosted it on an S3 bucket with website enabled. The site works fine, as long as I type it in exactly as it appears on the "Hosted zones" page. However, if I type "www." before it, I get a DNS error.

How do I configure Route 53 so that it works with the www address before it? I tried creating a new Hosted Zone and setting it up with a bucket that redirects to the main one, but that seemed to have no effect.

Edited by: griggszm on Jul 21, 2019 1:29 PM

質問済み 5年前233ビュー
1回答
0

You need to do two things,

Create a new S3 bucket called www.<yourdomain>
Configure it to redirect web traffic to your original S3 bucket.

Then go back to your hosted zone entry, add a new A record within that domain with the name 'www'
Click yes for alias and point it to your new www S3 bucket. You should now have 2 A records - one pointing to the <your-domain> S3 bucket and one pointing to www.<your-domina> S3 bucket

tedmc
回答済み 5年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ