A couple of files I use to configure MAMP for dynamic virtual hosting (also using with dnsmasq).