Apache Virtual Host Wildcard

February 23, 2006

This is something I've always wondered about but never bothered to try…

ServerName mail.cthought.com
ServerAlias mail.*

Basically as we have been providing more and more virtual hosting for email I have been looking for a better way to manage the webmail virtual hosting. Adding a server configuration directive every time I needed to insert a new company name is a little cumbersome. Thankfully Apache does support wildcard records in the serveralias field. Time to play around with this more.

The Next Move Is Yours

Stop Guessing. Start Leading.

Make your next IT decision the right one.