Question
How to use wildcards for dynamic networking
I would like to make better use of wildcards for my droplets, but I can’t seem to get it right.
Ideally I would like all *-dev.domain.com
sites to point to my DEV server, and *-staging
to my staging server, without having to manually set this up each time.
Neither *.dev
, *-dev
or *_dev
or *dev
seem to behave as expected for newsite.dev.domain.com
, newsite-dev.domain.com
, newsite_dev.domain.com
or newsitedev.domain.com
.
Is there a way to utilise wildcard networking is this manner, other than *.domain.com
.
Thanks!