Wildcard dynamic subdomain(s) in Homestead Laravel 5.1 on OS X Yosemite
First problem identitiedUsually wildcard domains may not work as *.domain.com. But you may have to try
server_name ~^(.*)\.example\.com$ example.com ;
Even if you add make changes in /etc/nginx/sites-available/project.mac make sure a symlink of this is available in sites-enabled directory as well. Unless symlink is present in sites-enabled directory your changes on prokect.mac file wont reflect.
go to sites-enabled directory and
sudo ln -s ../sites-available/project.mac
you may need to reload nginx server configs using
sudo nginx -s reload