Updated Mass Virtual Hosting How to for Mac OS X Leopard

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.

Comments

Mac

I've played with doing a custom apache install on Mac OS-X, and it's always been a pain.  Dale and I both basically use MAMP + HeadDress now.  The latter is commercial, but makes life fairly simple.

No custom install

The Apache install isn't custom -- this is stock Mac. I've never bothered to dive into MAMP since Marc Liyanage's OS X packages tend to give me what I need.

I've never had trouble doing stuff on the Mac that I can do on a production server, and the time spent tinkering with Apache and other configuration files are skills I need when sysadmin'ing dedicated servers in any case.

I had looked at HeadDress, and for folks that aren't going to be working a lot on the command line, it's a good simple solution.