Add a note about redirection rule to precise how regex/replacement work.
This commit is contained in:
parent
d973096464
commit
6bce298d90
2 changed files with 9 additions and 1 deletions
|
@ -34,6 +34,9 @@ To redirect an http entrypoint to an https entrypoint (with SNI support).
|
||||||
KeyFile = "integration/fixtures/https/snitest.org.key"
|
KeyFile = "integration/fixtures/https/snitest.org.key"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
Please note that `regex` and `replacement` do not have to be set in the `redirect` structure if an entrypoint is defined for the redirection (they will not be used in this case).
|
||||||
|
|
||||||
## Rewriting URL
|
## Rewriting URL
|
||||||
|
|
||||||
To redirect an entrypoint rewriting the URL.
|
To redirect an entrypoint rewriting the URL.
|
||||||
|
@ -47,6 +50,9 @@ To redirect an entrypoint rewriting the URL.
|
||||||
replacement = "http://mydomain/$1"
|
replacement = "http://mydomain/$1"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
Please note that `regex` and `replacement` do not have to be set in the `redirect` structure if an entrypoint is defined for the redirection (they will not be used in this case).
|
||||||
|
|
||||||
## TLS Mutual Authentication
|
## TLS Mutual Authentication
|
||||||
|
|
||||||
Only accept clients that present a certificate signed by a specified Certificate Authority (CA).
|
Only accept clients that present a certificate signed by a specified Certificate Authority (CA).
|
||||||
|
@ -72,7 +78,6 @@ In the example below both `snitest.com` and `snitest.org` will require client ce
|
||||||
KeyFile = "integration/fixtures/https/snitest.org.key"
|
KeyFile = "integration/fixtures/https/snitest.org.key"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
|
|
||||||
### Basic Authentication
|
### Basic Authentication
|
||||||
|
|
|
@ -47,6 +47,9 @@ defaultEntryPoints = ["http", "https"]
|
||||||
keyFile = "examples/traefik.key"
|
keyFile = "examples/traefik.key"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
!!! note
|
||||||
|
Please note that `regex` and `replacement` do not have to be set in the `redirect` structure if an entrypoint is defined for the redirection (they will not be used in this case)
|
||||||
|
|
||||||
## Let's Encrypt support
|
## Let's Encrypt support
|
||||||
|
|
||||||
### Basic example
|
### Basic example
|
||||||
|
|
Loading…
Add table
Reference in a new issue