layout: post title: Updated Mass Virtual Hosting How to for Mac OS X Leopard created: 1216021362 categories:
- apache
- mod_vhost_alias
- vhost
- Leopard
- VirtualHost
- Mac
I spent some time this weekend updating a long ago how to post on configuring mass virtual hosting for Apache on Mac OS X -- the original version was from April 2004!
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.