title: Multiple apache2 Virtual host sitses - All work except one
body: <p>I have a problem with apache2 and Virtual Hosts. I run a server with multiple sites. I have subdomains setup that point to my server IP. My customers, those that choose to have their own domain names point their domain/sub-domain to one of my subdomains. I've done this with multiple sites and it's always worked, except for now, and I cant figure out why.
  This is the virtual host that doesnt seem to work, it always points to my default site when i try to access it.</p>
  
  <p>The domain redirecting goes like this. customer.domain.com -> customer.mydomain.com -> server IP</p>
  
  <pre><code>&lt;VirtualHost customer.domain.com:443&gt;
      ServerName customer.domain.com
      ServerAlias *customer.domain.com *customer.mydomain.com
      DocumentRoot /var/www/page
  
    &lt;Directory /&gt;
      Order Deny,Allow
      Deny from all
    &lt;/Directory&gt;
  
    &lt;Directory /var/www/page&gt;
      Options -Indexes +FollowSymLinks +MultiViews
      AllowOverride All
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
    ErrorLog /var/log/apache2/customer/logs/error.log
  
    LogLevel warn
  
    CustomLog /var/log/apache2/customer/logs/access.log combined
  
    SSLEngine on
    SSLCertificateFile      /etc/ssl/certs/ssl-cert-snakeoil.pem
    SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
  
  
    BrowserMatch ".*MSIE.*" \
      nokeepalive ssl-unclean-shutdown \
      downgrade-1.0 force-response-1.0
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>This format is used for all other sites, and they are directed to the correct folder and site. But with this particular site it always gets directed to the default site.</p>
  
  <p>I've noticed that when i run apache2ctl -S I get two IPs. One is my servers IP with all of the virtual hosts, and the second IP seems connected to the new virtual host, the one that doesnt work.</p>
  
  <pre><code>52.52.52.52:443       customer.domain.com (/etc/apache2/sites-enabled/006-customer.domain.com.conf:1)
  12.12.12.12:443       is a NameVirtualHost
           default server default.mydomain.com (/etc/apache2/sites-enabled/001-default.mydomain.com.conf:1)
           port 443 namevhost default.mydomain.com (/etc/apache2/sites-enabled/001-default.mydomain.com.conf:1)
                   alias www.default.mydomain.com
           port 443 namevhost customer2.domain.com (/etc/apache2/sites-enabled/002-customer2.domain.com.conf:1)
                   alias www.customer2.domain.com
                   wild alias *subdomain.mydomain.com
  *:80                   default.mydomain.com (/etc/apache2/sites-enabled/000-default.conf:1) ..... more 
  </code></pre>
  
  <p>I'm not really sure what to look for, the logs don't seem to tell me anything useful. </p>
  
  <p>Any ideas on what I might be doing wrong? Thank you.</p>