VirtualHost Priority with Wildcard Hostname?

22 October 2018, 07:23
Hello. Since letsencrypt allow wildcard; I would like to use a
VirtualHost {
hostname=, *
for a cms to catch all subdomains and

VirtualHost {
hostname =
to serve some other content.

However the * declaration always override the I reverse the position and restart, same problem? Is there a way to get to work first? Thank you.
Hugo Leisink
22 October 2018, 23:43
Make the wildcard hostname always the last one in your configuration.
This topic has been closed.