Adição de Virtual Hosts ao Apache localhost (MAMP) . Arquivos: httpd.conf, host
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
#Main Host
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/Users/quartel/Documents/www"
ServerName localhost
ServerAlias www.localhost
ErrorLog "logs/localhost-error_log"
CustomLog "logs/localhost-access_log" common
<directory "/Applications/MAMP/htdocs/">
Options All
Order allow,deny
Allow from all
XSendFilePath "/Users/quartel/Documents/www"
</directory>
</VirtualHost>
#Aditional Host
<VirtualHost *:80>
ServerAdmin webmaster@vsh-api
DocumentRoot "/Users/quartel/Documents/www/vsh/api"
ServerName vsh-api
ServerAlias www.vsh-api
ErrorLog "logs/vsh-api-error_log"
CustomLog "logs/vsh-api-access_log" common
<directory "/Users/quartel/Documents/www/vsh/api">
Options All
Order allow,deny
Allow from all
XSendFilePath "/Users/quartel/Documents/www/vsh/api"
</directory>
</VirtualHost>
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
127.0.0.1 vsh-api www.vsh-api
255.255.255.255 broadcasthost
::1 localhost