amazon web services - AWS S3 CloudFront - redirect from https://www.domain.com to https://domain.com -


here aws route 53 setup: enter image description here

the domain https://www.migranthire.com doesn't work. how can redirect domain https://migranthire.com

your www site pointing directly s3 bucket web site hosting endpoint, taking care of redirect domain name without www prefix.

the s3 website endpoints do not support https, works http only.

your solution create second cloudfront distribution -- need additional one, because second 1 has different origin. configure distribution ssl certificate, configured expect www hostname alternative name, , set origin www bucket -- however, when setting second cloudfront distribution, do not select name of bucket list. instead, enter website endpoint hostname -- www.migranthire.com.s3-website-eu-west-1.amazonaws.com. set origin protocol http (cloudfront has send request bucket http if viewer protocol https. still green lock.)

then, configure route 53 send www requests new cloudfront distribution, instead of directly bucket. cloudfront speak ssl, sent request s3, return redirect, doing now.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -