Here's how to add some named localhosts to your OS X setup:
- open the NetinfoManager and become admin under the domain menu > security > authenticate.
- duplicate the localhost entry under the machines entry
- rename this copy to your prefered sitename (www.yoursitename1.dev), I used ".dev" because it's not used on the internet!
- open your terminal.app and SU to root
- type 'open -e /private/etc/httpd/httpd.conf' (without the quotes)
- find "#NameVirtualHost" in httpd.conf file
- change this into: "NameVirtualHost *" (remove the # and add the *, don't type the quotes)
- at the end of the file, make an entry like this:
<VirtualHost *>
DocumentRoot /Library/WebServer/www.yoursitename1.dev
ServerName www.yoursitename1.dev
</VirtualHost> - in your /Library/WebServer/ folder, make an folder named like above (www.yoursitename1.dev)
- want more virtual hosts? do step 2 & 3 (www.yoursitename2.dev, www.yoursitename3.dev enz..)
- repeat step 8 & 9
works here, questions.. feel free :-)

