Hosting multiple sites/domains on nginx

Create a folder for your new domain within nginx

mkdir -p /var/www/

Fix up the permissions

chown -R www-data:www-data /var/www/
chmod 755 /var/www

Create a simple page to serve

Add the following to /var/www/

    <h1>Success: You Have Set Up a Virtual Host</h1>

Create and modify the new virtual host config

cp /etc/nginx/sites-available/default /etc/nginx/sites-available/

Edit the new file and modify the following areas in the server section

listen 80;
#listen [::]:80 default_server ipv6only=on;
root /var/www/;
index index.php index.html index.htm;

Enable the virtual host

ln -s /etc/nginx/sites-available/ /etc/nginx/sites-enabled/

Restart nginx

service nginx restart