I setup SSL for the hostname of myserver.
when I visit hostname.mydomain.com I receive NET::ERR_CERT_COMMON_NAME_INVALID if I view the details of the certificate I see is certificate from mydomain.com not for hostname.mydomain.com
if I rebuild the webserver and use Apache only and visit hostname.mydomain.com everything works fine.
any suggestions why this happens?