title: How properly set a website and domain (with subdomains) with apache on ubuntu?
body: <p>First of all, apologies for my English.</p>
  
  <p>I've been reading and reading guides last week a lot hours with no success. I bought a domain + hosting but due bad performance I've got a cheap vps to use as hosting. Currently my setup is:</p>
  
  <ul>
  <li>A domain .com with an <strong>A record</strong> pointed to my <strong>vps ip</strong>.</li>
  <li>A unmanaged vps with Ubuntu 14.04.2 64 bits to use as hosting for my wordpress with LAMP stack with default setup (I didn't changed any setting on apache, <strong>using default virtualhost</strong>).</li>
  </ul>
  
  <p>My site works fine but I'm don't know how create subdomains with different directories. For example, my website.com files are in /var/www/html and I'd like to create subdomain.website.com with the files in other directory, let's say /var/www/subdomain.</p>
  
  <p>I checked a lot tutorials and they say to create a virtual server on apache (I use webmin) and then an A record for the subdomain pointing to the server ip.</p>
  
  <p>The problem is that when I enter to <strong>subdomain.website.com</strong> I see the <strong>content from main domain</strong> (/var/www/html) and not from "/var/www/subdomain"</p>
  
  <p>I don't want ask you for a full guide step by step, I just need know where I need to start for achieve a subdomain with a different directory because usually I always used hosting services with tools like cpanel to create subdomains pointed to directories in 2 clicks.</p>
  
  <p>I'm a full newbie with Apache/dns management.</p>
  
  <p>Thanks a lot for your time!</p>