Skip to content

Commit

Permalink
docs: fix strict-host default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmoraisjr committed Sep 8, 2020
1 parent 4e2219c commit 0fae103
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/content/en/docs/configuration/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ The table below describes all supported configuration keys.
| [`stats-port`](#stats) | port number | Global | `1936` |
| [`stats-proxy-protocol`](#stats) | [true\|false] | Global | `false` |
| [`stats-ssl-cert`](#stats) | namespace/secret name | Global | no ssl/plain http |
| [`strict-host`](#strict-host) | [true\|false] | Global | `true` |
| [`strict-host`](#strict-host) | [true\|false] | Global | `false` |
| [`syslog-endpoint`](#syslog) | IP:port (udp) | Global | do not log |
| [`syslog-format`](#syslog) | rfc5424\|rfc3164 | Global | `rfc5424` |
| [`syslog-length`](#syslog) | maximum length | Global | `1024` |
Expand Down Expand Up @@ -1667,13 +1667,13 @@ Configurations of the HAProxy statistics page:

| Configuration key | Scope | Default | Since |
|-------------------|-----------|---------|-------|
| `strict-host` | `Global` | `true` | |
| `strict-host` | `Global` | `false` | |

Defines whether the path of another matching host/FQDN should be used to try
to serve a request. The default value is `true`, which means a strict
configuration and the `default-backend` should be used if a path couldn't be
matched. If `false`, all matching wildcard hosts will be visited in order to
try to match the path.
to serve a request. The default value is `false`, which means all matching
wildcard hosts will be visited in order to try to match the path. If `true`,
a strict configuration is applied and the `default-backend` should be used
if a path couldn't be matched.

Using the following configuration:

Expand All @@ -1698,8 +1698,8 @@ Using the following configuration:

A request to `my.domain.com/b` would serve:

* `default-backend` if `strict-host` is `true`, the default value
* `svc2` if `strict-host` is `false`
* `svc2` if `strict-host` is `false`, the default value
* `default-backend` if `strict-host` is `true`

---

Expand Down

0 comments on commit 0fae103

Please sign in to comment.