From 134e037d4888631a1b8c420262b7b2c6323ba897 Mon Sep 17 00:00:00 2001 From: Tobias Munk Date: Thu, 22 Jan 2015 02:46:51 +0100 Subject: [PATCH] added wildcard hosts, fixes #89 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2815508..2f4972f 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,11 @@ If your container exposes multiple ports, nginx-proxy will default to the servic ### Multiple Hosts -If you need to support multipe virtual hosts for a container, you can separate each entry with commas. For example, `foo.bar.com,baz.bar.com,bar.com` and each host will be setup the same. +If you need to support multiple virtual hosts for a container, you can separate each entry with commas. For example, `foo.bar.com,baz.bar.com,bar.com` and each host will be setup the same. + +### Wildcard Hosts + +You can also use wildcards at the beginning and the end of host name, like `*.bar.com` or `foo.bar.*`. Or even a regular expression, which can be very useful in conjunction with a wildcard DNS service like [xip.io](http://xip.io), using `~^foo\.bar\..*\.xip\.io` will match `foo.bar.127.0.0.1.xip.io`, `foo.bar.10.0.2.2.xip.io` and all other given IPs. More information about this topic can be found in the nginx documentation about [`server_names`](http://nginx.org/en/docs/http/server_names.html). ### Separate Containers