title: How to I point multiple URLs to the right directory?
body: <p>I have a VPS running CentOS 5.  I want to point multiple domains at the same VPS (point them at the same IP), but serve up distinct websites for each domain.</p>
  <p>So, the setup I want is like this:</p>
  <p><code>site1.com</code>  ----&gt;  127.0.0.1  ----&gt; <code>/var/www/html/site1.com/</code><br />
  <code>site2.com</code>  ----&gt;  127.0.0.1  ----&gt; <code>/var/www/html/site2.com/</code></p>
  <p>I've tried setting up virtual hosts through the CentOS GUI for Apache, but they don't seem to be working.  Only the first virtual host added will work (i.e. If I add <code>site1.com</code> first, both domains direct to that site.  If I add <code>site2.com</code> first, both domains direct to that site.)</p>
  <p>What might I be doing wrong?  Is there an effective step-by-step tutorial for newcomers to get me started?</p>
  <hr />
  <h2>Update</h2>
  <p>Please remember, I have little to no experience working with CentOS and Linux ... but I'm learning.</p>
  <p>To those who asked to see the directives I'm using, here's what CentOS added to the bottom of <code>/etc/httpd/conf/httpd.conf</code> when I used the built-in Apache GUI:</p>
  <pre><code>&lt;VirtualHost skylarkapp.com:80&gt;
      DocumentRoot /var/www/html/skylarkapp.com
      &lt;Directory &quot;/var/www/html/skylarkapp.com&quot;&gt;
          allow from all
          Options +Indexes
      &lt;/Directory&gt;
      ServerName skylarkapp.com
  &lt;/VirtualHost&gt;
  &lt;VirtualHost eamann.com:80&gt;
      DocumentRoot /var/www/html/eamann
      &lt;Directory &quot;/var/www/html/eamann&quot;&gt;
          allow from all
          Options +Indexes
      &lt;/Directory&gt;
      ServerName eamann.com
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>At the moment, all traffic to both <code>skylarkapp.com</code> and <code>eamann.com</code> on this system direct to the content of <code>/var/www/html/skylarkapp.com</code>.</p>
  <p>Also, I'm using my Windows <code>hosts</code> file to manually point <code>eamann.com</code> to this server (204.92.23.6) because I'm in the process of migrating a live site.  I want to get things working on the server before I actually move things from one box to another.</p>