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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南