- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hi,
Setting up APEX to www and viceversa redirection with Cloudfront may seem a trivial task but it is far from it in AWS!
In my experience, rather than creating a hack with an empty S3 bucket which redirects to the target origin, I would rather setup a CloudFront function that handles the redirection: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/example-function-redirect-url.html.
The 2 possible approaches are explained here too: https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-redirect-domain/
Hope it clarifies
Make sure your Security group on your ALB for www.mydomain.com allows access from cloudfront. Also ensure that the ECS container's SG has access from the same ALB in question also.
Ensure your ALB rules are setup and send requests to the containers. If using custom headers for permission, ensure the correct HTTP Headers are on your alb rules also
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 9 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans