mirror of
https://github.com/thib8956/nginx-proxy
synced 2024-12-26 12:36:31 +00:00
added wildcard hosts, fixes #89
This commit is contained in:
parent
450ecf23ed
commit
134e037d48
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user