title: apache VirtualHost redirecting to different VirtualHost
body: <p>I am very new to <code>Apache2</code> and I am attempting to serve two websites on a server. </p>
  
  <p>I have followed the documentation here: <a href="https://httpd.apache.org/docs/current/vhosts/examples.html" rel="nofollow">https://httpd.apache.org/docs/current/vhosts/examples.html</a></p>
  
  <p>and have attempted: </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "var/www/websiteexample1.com"
      ServerName www.websiteexample1.com
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      DocumentRoot "var/www/websiteexample2.com"
      ServerName www.websiteexample2.com
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>However if i attempt to go to <code>www.websiteexample2.com</code> I am instead directed to the content of <code>www.websiteexample1.com</code></p>
  
  <p>What am i missing? </p>