Amazon s3 domain name routing to endpoint instead of serving only index.html -
recently tried host website on amazon s3 next steps on http://docs.aws.amazon.com/gettingstarted/latest/swh/getting-started-configure-route53.html ..on step 5 created alias route endpoint. now, on typing www.example.com redirecting http://example.com.s3-website-ap-southeast-1.amazonaws.com/index.html instead of www.example.com/index.html
how can route example.com instead of endpoint?
the referenced getting started illustration how associate domain name website using amazon route 53 using increasingly preferred approach host website on domain root, because more involved , back upwards via route 53 alias resource record sets beingness worth mentioning/showcasing.
the amazon s3 developer guide features illustration setting static website using custom domain, bit more explicit arbitrary selection of 2 buckets redirection target, see step 2: create 2 buckets:
in example, back upwards requests both root domain such example.com , subdomain such www.example.com, create 2 buckets. one bucket contain content , configure other bucket redirect requests. [...] [emphasis mine]
all need inverse configuration instructions example.com
vs. www.example.com
(starting step 2.1.3) redirect requests former root domain bucket latter instead of other way round.
amazon-web-services amazon-s3 amazon-route53
No comments:
Post a Comment