<VirtualHost *:80>
ServerName test.dev
ServerAdmin webmaster@localhost
DocumentRoot /var/www/test.dev
Options Indexes FollowSymLinks MultiViews
ErrorLog /error.log
CustomLog /access.log combined
</VirtualHost>
127.0.0.1 test.dev
sudo a2ensite test.dev.conf
sudo service apache2 restart