Are you trying to use them on the same IP address? SSL won't work that way.
The SSL handshake happens before any HTTP headers are sent -- there is no way for a web server to know to which certificate to connect you to by headers. So Apache will connect you to the SSL cert which is configured first in the config file. ______________________________________________________________________
TANSTAAFL!
Virtual hosts allow multiple sites to be hosted on a single shared IP address. Apache differentiates between multiple sites on one IP address by matching the hostname given in the "ServerName" or "ServerAlias" configuration directives in the "<VirtualHost...>...</VirtualHost>" tags to the hostname given in the "Host:" HTTP header.
Since the HTTPS SSL handshake takes place before any headers are sent, there is no way for Apache to know which SSL certificate to use. It generally defaults to using the first-defined cert in httpd.conf.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.