title: Multiple sites per Apache server with SSL showing wrong site with HTTPS
body: <p>I have a Debian server which is running a number of client sites. Most of these are not running SSL so accessing by HTTP is fine.</p>
  
  <p>I have one customer with an SSL certificate and accessing their site via HTTPS is fine too. </p>
  
  <p>The problem comes if you try to access one of the other sites with HTTPS you get directed to the other site that has the SSL certificate.</p>
  
  <p>For instance, lets say we have the following sites on the server:</p>
  
  <pre><code>alpha.net
  bravo.net
  charlie.net (SSL)
  delta.net
  </code></pre>
  
  <p>So as you can see, charlie is the only one with SSL, and irrespective of if you go to http charlie.net or https charlie.net, it works fine.</p>
  
  <p>http to all the other sites is fine, but if you were to go to https alpha.net, it will initially come up with an Invalid Certificate error and let you continue but whilst it has alpha.net in the address bar, its actually showing the charlie.net site in the browser.</p>
  
  <p>I have researched SNI and how if any other sites have SSL I'll need to put them all on specific IP addresses (something else I need to try to work out how to do as I have no idea) but I am not sure why this is happening or how I resolve it.</p>
  
  <p>Has anyone else encountered this before and how did you get around it?</p>
  
  <p>Many thanks,</p>
  
  <p>Rob</p>