2 Answers
- Newest
- Most votes
- Most comments
1
Hello
You can use Lambda@edge to redirect the requests, Please look at the Official Docs from the AWS , I also seen the article with sample configuration with node.js , this link will help you, Kindly look into it.
Thank You
answered 2 years ago
0
I assume there are some URIs that you want to redirect, while others are served by the ALB? While this can be done with Lambda@Edge as described above, you can also do this with AWS WAF, which would reduce the complexity of your configuration. This blog post: https://aws.amazon.com/blogs/security/customize-requests-and-responses-with-aws-waf/ describes various options for achieving this with WAF. Note that you would attach WAF to your CloudFront distribution rather than your ALB.
Relevant content
- Accepted Answerasked 3 years ago
- asked 7 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
Thanks for the reply. I already have a WAF attached to my CloudFront distribution. I believe that with the WAF this is not an applicable solution as the path I want to redirect to both destinations is the same, both the Target Group of the ALB and the URL must receive the same request.