Update src/docs/markdown/caddyfile/options.md

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
Mohammed Al Sahaf 2024-10-11 16:59:50 +03:00 committed by GitHub
parent f3bb002d6e
commit b59374fc74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -795,7 +795,7 @@ The `tls` listener wrapper is a no-op listener wrapper that marks where the TLS
The [`http_redirect`](/docs/json/apps/http/servers/listener_wrappers/http_redirect/) provides HTTP->HTTPS redirects for connections that come on the TLS port as an HTTP request, by detecting using the first few bytes that it's not a TLS handshake, but instead an HTTP request. This is most useful when serving HTTPS on a non-standard port (other than `443`), since browsers will try HTTP unless the scheme is specified. It must be placed _before_ the `tls` listener wrapper. Here's an example:
```
```caddy
{
servers {
listener_wrappers {