title: Apache: configuring virtual hosts
body: <p>I was having some trouble in configuring virtual hosts in Apache 2.2.3 CentOS, 
  I have the following configuration: </p>
  
  <p>httpd.conf</p>
  
  <pre><code>NameVirtualHost mydomain.site.ch
  
  &lt;VirtualHost mydomain.site.ch&gt;
      ServerName mydomain.site.ch
      DocumentRoot /home/django_www/hello
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot /var/www/html
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>/etc/hosts</p>
  
  <pre><code>127.0.0.1       localhost.localdomain localhost
  x.y.z.89        mydomain.site.ch
  </code></pre>
  
  <p>I need to match all the requests that comes to this server with the second VirtualHost entry  except the one coming with this domain name "mydomain.site.ch" .
  But the result: with this configuration i get all the requests handled by the first VirtualHost entry.. (the configuration syntax is OK!) Any ideas in how to correct this problem?</p>