Browse Source

Merge pull request #90 from schmunk42/feature/wildcard-dns

added wildcard hosts, fixes #89
Jason Wilder 10 years ago
parent
commit
71a7ce39b2
1 changed files with 5 additions and 1 deletions
  1. 5 1
      README.md

+ 5 - 1
README.md

@@ -25,7 +25,11 @@ If your container exposes multiple ports, nginx-proxy will default to the servic
 
 
 ### Multiple Hosts
 ### 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
 ### Separate Containers