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?

专家
已回答 1 年前
0

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

已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则