The ServerName directive takes care of that - there is no need to duplicate it in the ServerAlias.
Not that it matters (assuming the OP wants all sub-domain matching, not just www.) - I was just...
Type: Posts; User: MJN; Keyword(s):
The ServerName directive takes care of that - there is no need to duplicate it in the ServerAlias.
Not that it matters (assuming the OP wants all sub-domain matching, not just www.) - I was just...
Unless sub-domain matching is required, ServerAlias example.com will match example.com as it stands.
Mathew
Have you turned name-based virtual hosting on?
i.e. NameVirtualHost *
(it needs to go outside of any <Virtualhost> container, e.g. the line above in your posed config)
Mathew