S3 static hosting redirection not working

0

I set up three buckets as described in AWS doc (example.com, www.example.com, and logs.example.com), substituting my domain name. i set up example.com as static hosting and copied the bucket policy as described. i then set up www.example.com as static hosting with redirect. no matter what i enter for the endpoint here, it changes to www.example.com. i also tried this with dummy bucket names with same result. when i click on the endpoint in the www bucket, i get page not found. this is for a school project so i don't want to incur costs.

2개 답변
0

Is it these instructions you followed? - https://docs.aws.amazon.com/AmazonS3/latest/userguide/how-to-page-redirect.html

There is says when you set up the redirect destination, "In the Host name box, enter the website endpoint for your bucket or your custom domain. For example, if you are redirecting to a root domain address, you would enter example.com". Is this "Host name box" where it always changes to www.example.com no matter what you enter?

전문가
답변함 일 년 전
0

yes, you are correct. no matter what i type in the host name, when i click save it shows the www bucket

답변함 일 년 전

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

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

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

관련 콘텐츠