Redirect (AWS::ElasticLoadBalancingV2::Listener)
Jump to navigation
Jump to search
HTTPlistener: Type: "AWS::ElasticLoadBalancingV2::Listener" Properties: DefaultActions: - Type: "redirect" RedirectConfig: Protocol: "HTTPS" Port: 443 Host: "#{host}" Path: "/#{path}" Query: "#{query}" StatusCode: "HTTP_301" LoadBalancerArn: !Ref myLoadBalancer Port: 80 Protocol: "HTTP"
Related terms[edit]
- URL redirection
return
Nginx directiveaws_lb_listener_rule
Terraform resource
Changelog[edit]
- Host-Based Routing Support (Apr 2017) https://aws.amazon.com/blogs/aws/new-host-based-routing-support-for-aws-application-load-balancers/
See also[edit]
Advertising: