Question: I'm trying to install wordpress but i'm confused as to how the Apache Vhost should look.

Ideally i'm after a vhost setup that adds additional security (make sure referrer is correct when doing comments)

I cant seem to find this anywhere (i'm not the best searcher)

Answer: 
It's pretty straight forward

from <http://ubuntuforums.org/showthread.php?t=794248>:

* create a new site(vhost) configuration at /etc/apache2/sites-available/ (replace with whatever you want besides default) something like this should work

> 
> 
> ```
> NameVirtualHost *:80
> 
> <VirtualHost *:80>
> DocumentRoot /path/to/new/site
> ServerName www.example.com
> </VirtualHost>
> 
> ```
> 
> 

* enable your new site

> 
> 
> ```
> sudo a2ensite <site name>
> 
> ```
> 
> 

* restart apache to listen on your new port and load your new site

> 
> 
> ```
> sudo /etc/init.d/apache2 restart
> 
> ```
> 
>
This [guide for vhosts using mamp](http://foundationphp.com/tutorials/vhosts_mamp.php) will help you with the setup! This saved me a lot of time.