This is all you need to do
nano /etc/apache2/sites-available/anydomin.tld
<VirtualHost *:80>
ServerName mydomain.tld
ServerAlias www.mydomain.tld
DocumentRoot /var/www/anything_under_the_sun
</VirtualHost>
Then just reload Apache2. and modify the A record on your domain to your servers IP.

(of course you need to make the folder)
ps. This is for ubuntu servers
Hope this helps some one out there!