Now that you’ve setup
dnsmasq, you can resolve
*.devto your Homestead machine easily, but you still need that manual step of either configuring a new domain in your
Homestead.yamlfile or using the
servecommand within the virtual machine itself.
Whilst 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)
Every two weeks I send out a newsletter containing lots of interesting stuff for the modern PHP developer. You can expect quick tips, links to interesting tutorials, opinions and packages. Want to learn the cool stuff? Then sign up now!