Sha256: 8c539fdf738ed570296599fe24daa1a16d89d8642276b45781fcba6ac4014451

Contents?: true

Size: 787 Bytes

Versions: 12

Compression:

Stored size: 787 Bytes

Contents

---
title: Redirection Support
nav_order: 29
---

## 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]({% link _docs/extras/ssl-support.md %}).  Here's an example that redirects http to https with a 302 http status code:

```
listener:
  port: 80
  # ...
  default_actions:
   - type: redirect
     redirect_config:
       protocol: HTTPS
       status_code: 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.

{% include prev_next.md %}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ufo-4.5.11 docs/_docs/extras/redirection-support.md
ufo-4.5.10 docs/_docs/extras/redirection-support.md
ufo-4.5.9 docs/_docs/extras/redirection-support.md
ufo-4.5.8 docs/_docs/extras/redirection-support.md
ufo-4.5.7 docs/_docs/extras/redirection-support.md
ufo-4.5.6 docs/_docs/extras/redirection-support.md
ufo-4.5.5 docs/_docs/extras/redirection-support.md
ufo-4.5.4 docs/_docs/extras/redirection-support.md
ufo-4.5.3 docs/_docs/extras/redirection-support.md
ufo-4.5.2 docs/_docs/extras/redirection-support.md
ufo-4.5.1 docs/_docs/extras/redirection-support.md
ufo-4.5.0 docs/_docs/extras/redirection-support.md