Skip to content

Commit 229944b

Browse files
authored
Update README.md
1 parent 00d4d07 commit 229944b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ available at http://myrailsapp.docker/.
4040
This will work even if dinghy auto-generates a hostname based on the
4141
docker-compose tags.
4242

43+
#### Multiple Hosts
44+
45+
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.
46+
47+
#### Wildcard Hosts
48+
49+
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).
50+
4351
### Subdomain Support
4452

4553
If you want your container to also be available at all subdomains to the given

0 commit comments

Comments
 (0)