Virtualhost1 SSL affecting Virtualhost2 Aliase SSL

Solution 1:

Server aliases should be separated by space, not comma, so you ServerAlias line should look like this:

ServerAlias cert-1.domain.com *.net.domain.com

Note that more ServerAlias directives can be given in a single block, which makes the config a bit more readable in case of many aliases.

If you request a host for which no explicit configuration exist, Apache serves the first block it finds (this is why it is a good idea to include a VirtualHost block with ServerAlias * in the las place, to have a "catch-all" site).

So in your case, none of the ServerAlias lines work (not as you expect them, anyway), since you are defining an alias to a server which would have the "cert-2.domain.com,*.org.domain.com" name, with comma, asterisk and all. For this, when you ask for "anything.org.domain.com", Apache serves the first block it encounters, as this host name is not defined in the config.