From 6bce298d90e60c5219a1f06f0c6e69321acb6772 Mon Sep 17 00:00:00 2001 From: NicoMen Date: Sun, 22 Oct 2017 09:44:03 +0200 Subject: [PATCH] Add a note about redirection rule to precise how regex/replacement work. --- docs/configuration/entrypoints.md | 7 ++++++- docs/user-guide/examples.md | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/configuration/entrypoints.md b/docs/configuration/entrypoints.md index 7bb55c8f3..de84f594e 100644 --- a/docs/configuration/entrypoints.md +++ b/docs/configuration/entrypoints.md @@ -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 diff --git a/docs/user-guide/examples.md b/docs/user-guide/examples.md index 07128cdc8..91b650747 100644 --- a/docs/user-guide/examples.md +++ b/docs/user-guide/examples.md @@ -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