You just need a different Nginx site for each domain you'd like to host. Laravel Forge makes this really easy if you are using it.
Your Nginx configuration could look something like this:
server {
listen 80;
server_name example.com;
root /home/forge/example.com;
# FORGE SSL (DO NOT REMOVE!)
# ssl_certificate;
# ssl_certificate_key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/elpete.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_param DB_HOST "localhost";
fastcgi_param DB_PASS "5zOvon4dc7oZ5g7VC3hS";
fastcgi_param DB_USER "forge";
fastcgi_param DB_NAME "elpete";
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
Again, Forge is the easiest. I highly recommend it. (That configuration above was generated by Forge.)