How to Create a Laravel Catchall Nginx Config for Local Development
Aka how to create a dynamic catch-all nginx config. (Mostly for laravel, but should work w/ any flow if you make some mods).
I absolutely hate editing configs all the time, and I probably create new laravel installs all the freaking time.
Today I finally got sick of the old workflow:
$ sudo cp /etc/nginx/sites-available/site1.test /etc/nginx/sites-available/site2.test
$ sudo ln -s /etc/nginx/sites-available/site2.test /etc/nginx/sites-enabled/site2.test