Redirection Support

Application Load Balancers

If you are using an Application Load Balancer you can configure redirection by editing the default actions of the regular listener that is set up by ufo. This assumes you have set up SSL Support. Here’s an example that redirects http to https with a 302 http status code:

Listener:
  Port: 80
  # ...
  DefaultActions:
   - Type: redirect
     RedirectConfig:
       Protocol: HTTPS
       StatusCode: HTTP_302 # HTTP_301 and HTTP_302 are valid
       Port: 443

Network Load Balancers

Network Load Balancers work at layer 4, so they do not support redirection. Instead you need to handle redirection within your app.

Pro tip: Use the <- and -> arrow keys to move back and forward.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!