Skip to content

Commit

Permalink
Use rule HostSNI in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bbinet authored and traefiker committed Mar 14, 2019
1 parent 87da752 commit cfaf47c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/content/routing/routers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
```
Expand Down

0 comments on commit cfaf47c

Please sign in to comment.