apache2 ignores ServerName in virtual host setup
I am adding ssl to an existing server which is working just fine with one main server at port 80.
All I am wanting to do is add ssl service. I now have the main server - port 80 - established in the Virtual Hosting Section of the config. I then added the ssl config paragraph, identifying the virtual host as 22.214.171.124:443 (as compared with 126.96.36.199:80). I set the ServerName to secure.mysite.com for the former and continued with www.mysite.com for the latter. The CN record in the self-signed certificate agrees with secure.mysite.com, and the settings for the 2 virtual hosts are correct as diplayed by running httpd -S.
However, attempting to access the secure server with firefox causes an error to be logged: CN secure.mysite.com does not match server name!?
So ... something is ignoring or overwriting the ServerName setting in the setup of the secure port, but what and why??? There are no named hosts, only the2 mentioned above, so there is minimum complication here.
I'm almost ready to slide in another nic card and make use of the unused static Ip I have from my telco.