"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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠