When you sit down and start a new project, often times, you'll want to set up a virtual host,
a spoof domain that will emulate a live environment. The effort is usually two parts: set up a
domain in /etc/hosts
, and then add a <VirtualHost>
entry in /Applications/MAMP/conf/apache/httpd.conf
to make your files accessible.
This tutorial is setting up a 'zero-configuration' development environment. We'll be setting up a
spoof domain ending in .dev
. In MAMP, we'll create a folder called dev
. Any folder inside,
the name will become the domain.