From cfaf47c8a2ea6d413b8a99be71250c7c336e1308 Mon Sep 17 00:00:00 2001 From: Bruno Binet Date: Thu, 14 Mar 2019 12:16:03 +0100 Subject: [PATCH] Use rule HostSNI in documentation --- docs/content/routing/routers/index.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/routing/routers/index.md b/docs/content/routing/routers/index.md index ef701e68c..a5fde96b4 100644 --- a/docs/content/routing/routers/index.md +++ b/docs/content/routing/routers/index.md @@ -222,8 +222,9 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin [tcp.routers] [tcp.routers.Router-1] # By default, routers listen to every entrypoints - rule = "Host(traefik.io)" + rule = "HostSNI(`traefik.io`)" service = "service-1" + [tcp.routers.Router-1.tls] # will route TLS requests (and ignore non tls requests) ``` ??? example "Listens to Specific EntryPoints" @@ -240,7 +241,7 @@ If you want to limit the router scope to a set of entrypoints, set the entrypoin [tcp.routers] [tcp.routers.Router-1] entryPoints = ["web-secure", "other"] # won't listen to entrypoint web - rule = "Host(traefik.io)" + rule = "HostSNI(`traefik.io`)" service = "service-1" [tcp.routers.Router-1.tls] # will route TLS requests (and ignore non tls requests) ```