I have an Apache testserver with a SSL site (Port 443, www.example1.net) and a normal non-SSL site (Port 80, www.example2.net). DNS points to the serverip (192.168.1.1), everything works.
However, is there a solution for the following problem: When I enter https://www.example2.net (SSL requesting the non-SSL site, but on the same serverip) in the browser, it shows me the CN error with the certificate (of course) and later on the example1.net site.
Is the a way to let Apache answer ONLY to what I define via ServerName or ServerAlias in the vhost config? Or can this problem fixed otherwise? I do not want apache to respond to SSL requesting the non-SSL Site.
Thanks!
www.example2.net
configured to use port 443 as well, openinghttps://www.example2.net
is trying to openexample1
since it's the only one using 443. But apache would give an error to the browser because the certificate's registered domain doesn't match the domain that is accessing the VHost.