Website with wildcard alias is displayed instead of webmail

Apologies if this has been answered. I couldn’t find an existing topic.

I have a server with a handful of websites. One of the domains has an alias *.domain.tld. When I visit webmail.domain.tld, the website for domain.tld shows up instead of the webmail.

The webmail works for every other website except the one with the wildcard alias. The webmail shows if I disable the wildcard alias.

Any recommendation on how to get the webmail showing? Anything apart from disabling the wildcard alias

Is your mail server configuration right?

And did you have a dns entry for webmail.?

grafik

Apache2 takes the order of the config files in account:

So if you create:

hestiacp.com
With as alias
*.hestiacp.com

And “webmail.hestiacp.com

It will use hestiacp.com instead…

Nginx works fine…