Dead simple domain mapping in Laravel Homestead
Michael Dyrynda wrote up a follow up on my homestead tips blog post:
Now that you've setup `dnsmasq`, you can resolve `*.dev` to your Homestead machine easily, but you still need that manual step of either configuring a new domain in your `Homestead.yaml` file or using the `serve`command within the virtual machine itself.https://dyrynda.com.au/blog/dead-simple-domain-mapping-in-laravel-homesteadWhilst neither of these methods take a particularly long time to complete, it's still a few seconds of repetition that can be avoided with some tweaking of your default nginx configuration using wildcard hosts.
What we'll be doing, is telling nginx to listen for anything sent to it that isn't explicitly configured and look for the domain name in your (default)
/home/vagrant/Code
directory.
What are your thoughts on "Dead simple domain mapping in Laravel Homestead"?