title: virtual hosts DocumentRoot not being changed
body: <p>Don't think my virtualhost is working correctly. This is what I have inside of httpd.conf...it is the last thing in the file:</p>
  
  <pre><code>NameVirtualHost *:80
  &lt;VirtualHost *:80&gt;
  DocumentRoot /var/www/html/testing
  ServerName testing.aa.local
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>In my /etc/hosts file:</p>
  
  <pre><code>127.0.0.1 testing.aa.local
  </code></pre>
  
  <p>Now when I go to testing.aa.local it shows the index page of the root of the site. In httpd.conf the document root is <code>DocumentRoot /var/www/html</code>. It appears it is taking that document root and not the VirtualHost documentroot. When I restart httpd there are no errors. When I say httpd -S it says:</p>
  
  <pre><code>$ sudo /usr/sbin/httpd -S 
  VirtualHost configuration: wildcard NameVirtualHosts and _default_ servers:
  _default_:443          aa.local (/etc/httpd/conf.d/ssl.conf:81)
  *:*                    aa.local (/etc/httpd/conf/httpd.conf:974)
  *:80                   is a NameVirtualHost
           default server testing.aa.local (/etc/httpd/conf/httpd.conf:1031)
           port 80 namevhost testing.aa.local (/etc/httpd/conf/httpd.conf:1031) Syntax OK
  </code></pre>
  
  <p>Anyone understand why when I go to testing.aa.local it is showing me the index page of /var/www/html rather than /var/www/html/testing? Again, /var/www/html is defined as the httpd.conf file as the DocumentRoot but later on I declare the virtualhost container and so I thought it should overwrite it?</p>