title: Apache multiple domains setup
body: <p>I've got a pretty straightforward issue with a linux based Apache 2.2 server I am setting up.  I want to setup two totally different domains on the same server.
  But it only serves content from the first  tag!  I've searched StackOverflow and read items at Apache.org but no luck.</p>
  
  <p>I followed the directions on Apache.org and put these two sections at the bottom of my http.conf file.</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot /var/www/mydomain1
      ServerName sub1.mydomain1.com
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot /var/www/mydomain2
      ServerName sub2.mydomain2.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Now when I use a browser to go to: <a href="http://sub1.mydomain1.com">http://sub1.mydomain1.com</a> it comes up fine.  But if I go to <a href="http://sub2.mydomain2.com">http://sub2.mydomain2.com</a> I still only get the content that located in /var/www/webfiles/mydomain1. </p>
  
  <p>I did many of the obvious things such as:
  - service httpd restart
  - I changed the order of the two entries in my httpd.conf and once again, it only serves the first one in the list.
  - One support doc I had Googled said to make sure to have the following entry point to a valid domain on your system.  So I entered this (but it didn't change anything):
  ServerName sub2.mydomain2.com:80   </p>
  
  <p>It must be something silly but I can't figure it out!</p>