With Mac OS X 10.6, I'm having some fun moving from the old way of hosting multiple sites (having a block of code in a .conf file for each virtual host) to a slightly less old way (telling the server to look in /sites/ for a folder named example.com and serve whatever is in there.)
Making this happen only requires a couple things: in /etc/apache2/httpd.conf, uncomment this line
and below that add
add a block of code that says
<Directory /sites> Order Deny,Allow Allow from all </Directory>
My only problem is I can't find an easy way to serve the same content if the visitor requests example.com or www.example.com. With the old way it's easy to make it respond to any subdomain. I'm sure there's a way to do this with the Apache config so I don't have to resort to making lots of symlinks in /sites/. I couldn't find an obvious answer at http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html
Ideally, not only would I like to serve the same content with or without the 'www', I'd like to be able to still use subdomains as needed with different, so I'd rather not have everything (*.example.com) serve from the same folder.