Add a note about redirection rule to precise how regex/replacement work.

This commit is contained in:
NicoMen 2017-10-22 09:44:03 +02:00 committed by Traefiker
parent d973096464
commit 6bce298d90
2 changed files with 9 additions and 1 deletions

View file

@ -34,6 +34,9 @@ To redirect an http entrypoint to an https entrypoint (with SNI support).
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
To redirect an entrypoint rewriting the URL.
@ -47,6 +50,9 @@ To redirect an entrypoint rewriting the URL.
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
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"
```
## Authentication
### Basic Authentication

View file

@ -47,6 +47,9 @@ defaultEntryPoints = ["http", "https"]
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
### Basic example