title: subdomain is not redirecting to main domain but different virtual host
body: <p>I am hosting multiple domains from the same server. Each domain is having multiple subdomains. Let's say I have the following domains: <code>example1.com</code>, and <code>example2.com</code>. Also, <code>example1.com</code> has <code>subdomain1.example1.com</code>.</p>
  <p>I redirect <code>http</code> to <code>https</code> with SSL certificate on <code>example1.com</code> and <code>*.example1.com</code> and <code>example2.com</code>.</p>
  <p>My <code>example1.com</code> and <code>example2.com</code> are redirected fine but <code>subdomain1.example1.com</code> is not redirecting and it is trying to get the certificate from <code>example2.com</code>.</p>
  <p>My application is Django and I am using mod-wsgi for deployment.</p>