Update the hosts file in /etc/hosts
to maintain multiple domains/hostnames on a local machine for 127.0.0.1 and setup a VirtualHost container in /Applications/MAMP/conf/apache/extra/httpd-vhost.conf
via /Applications/MAMP/conf/apache/httpd.conf
for a name-based virtual host.
- Related tutorial: http://osxdaily.com/2012/08/07/edit-hosts-file-mac-os-x/
- Documentation: http://httpd.apache.org/docs/2.2/vhosts/
Only suitable for MAMP users under OS X Lion, OS X Mountain Lion, and OS X Mavericks on Apache-Port 80 and MySQL-Port 3306.