title: How to setup two virtual hosts in CentOS?
body: <p>I have two domains I'm trying to host on the same IP. This is what I've been trying, but it doesn't work:</p>
  
  <pre><code>    &lt;VirtualHost host1.me:80&gt;
          ServerAdmin admin@menet.me
          DocumentRoot /var/www/html/host1/
          ServerName host1.me
          ErrorLog logs/host1-error_log
          CustomLog logs/host1-access_log common
      &lt;/VirtualHost&gt;
  
      &lt;VirtualHost host2.me:80&gt;
          ServerAdmin admin@menet.me
          DocumentRoot /var/www/html/host2/
          ServerName www.host2.me
          ServerAlias host2.me
          ErrorLog logs/host2-error_log
          CustomLog logs/host2-access_log common
      &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>What should I put in my httpd.conf?</p>