From e0f265db1549e0f84384b7aa374c788b616a2705 Mon Sep 17 00:00:00 2001 From: Eugen Mayer Date: Mon, 9 Dec 2019 12:32:04 +0100 Subject: [PATCH] Make trailing slash more prominent for the "secure dashboard setup" too --- docs/content/operations/dashboard.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/content/operations/dashboard.md b/docs/content/operations/dashboard.md index 46fbb9775..70b0637f9 100644 --- a/docs/content/operations/dashboard.md +++ b/docs/content/operations/dashboard.md @@ -85,19 +85,17 @@ We recommend to use a "Host Based rule" as ```Host(`traefik.domain.com`)``` to m or to make sure that the defined rule captures both prefixes: ```bash tab="Host Rule" -# Matches http://traefik.domain.com/api or http://traefik.domain.com/dashboard +# The dashboard can be accessed on http://traefik.domain.com/dashboard/ rule = "Host(`traefik.domain.com`)" ``` ```bash tab="Path Prefix Rule" -# Matches http://traefik.domain.com/api , http://domain.com/api or http://traefik.domain.com/dashboard -# but does not match http://traefik.domain.com/hello +# The dashboard can be accessed on http://domain.com/dashboard/ or http://traefik.domain.com/dashboard/ rule = "PathPrefix(`/api`) || PathPrefix(`/dashboard`)" ``` ```bash tab="Combination of Rules" -# Matches http://traefik.domain.com/api or http://traefik.domain.com/dashboard -# but does not match http://traefik.domain.com/hello +# The dashboard can be accessed on http://traefik.domain.com/dashboard/ rule = "Host(`traefik.domain.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))" ```