For enabling SSL for a single domain on a server with muliple vhosts, will this configuration work?

Solution 1:

What you are trying to do is SNI. The IP address is in fact a host name in matters of negotiation.

Your configuration will point both domain1.com and https://173.XXX.XXX.20 into the same directory.

You have 4 options:

  1. SNI

  2. Get an additional IP

  3. Create an alias for phpmyamin under the one SSL cert you have

  4. Just listen on another port for SSL as well and have the IP hostname use that. e.g. https://173.XXX.XXX.20:444

The configuration you have listed would most likely cause you some trouble. Edit your question with what solution you want to run with.. Or comment on this reply