title: Multiple Domains on a VPS with Apache
body: <p>I am planning on getting a VPS soon and have two sites I want to host. I have my local vhosts setup for my development environment using host file to port it correctly.</p>
  
  <p>My question is hopefully simple: When setting up with two separate domains that point to the one VPS server is Apache smart enough, like on the local environment, to automatically filter any requests for domain.com to the correct VHOST like it does locally? I would just like to be sure :)</p>
  
  <p>Thanks! </p>
  
  <p>Example of what I am asking:</p>
  
  <p>Say Domain1.com and Domain2.com are both on my VPS. </p>
  
  <p>When someone requests www.Domain1.com apache sees this and passes it through to the domain1.com vhost file.
  When someone requests www.Domain2.com apache sees this and passes it through to the domain2.com vhost file.</p>