Imagine being able to simply create a new project (we’ll use laravel for an example), run the command: Then automatically having testapp.test work in the browser and show your laravel site. This is what I created and it works beautifully. Laravel is my framework of choice, but you can tweak things to work for most things if you try.
If you can’t do this, then you may just need to add an extra step of adding testapp.test 127.0.0.1 to your hosts file on windows/mac etc. For me, I’m using dnsmasq, and my config looks something like: My NetworkManager config looks like: After these settings and making sure you have dnsmasq installed of course, just run: If you already have nginx installed, you should if you go to kgdjflkjdljgdlkj.test you should see the default nginx page if you have one or something like: Now for the nginx config.