mirror of
https://github.com/caddyserver/website.git
synced 2025-06-15 10:44:44 -04:00
Update src/docs/markdown/caddyfile/options.md
Co-authored-by: Francis Lavoie <lavofr@gmail.com>
This commit is contained in:
parent
f3bb002d6e
commit
b59374fc74
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
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 {
|
servers {
|
||||||
listener_wrappers {
|
listener_wrappers {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue