I do lots of testing on my laptop, and while I’m now quite familiar with VirtualHost entries from the dedicated servers I work with, this is actually even easier: just create a directory with the name of the host and requests for that host will be served from the directory. It all comes down to good old mod_vhost_alias. I probably should do some more direct examples of mixing and matching this with other host directives. As mentioned at the end of the article, aside from symlinking one directory to another, I don’t know of another way to point multiple hosts at the same web root. I’ll get to it if I end up needing it myself, it works for now.
Rendering context...