Aqui, os passos que tomei para conseguir isso
- Comentou o estoque MAMP DOCUMENT_ROOT
/Applications/MAMP/conf/apache/httpd.conf
# MAMP DOCUMENT_ROOT !! Don't remove this line !!
# DocumentRoot "/Applications/MAMP/htdocs/code/benu/ssc-portal/public"
# <Directory "/Applications/MAMP/htdocs/code/benu/ssc-portal/public">
# Options All
# AllowOverride All
# Order allow,deny
# Allow from all
# XSendFilePath "/Applications/MAMP/htdocs"
# </Directory>
Certifique-se de incluir um arquivo vhost, descomente a linha abaixo assim
# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
- Adiciona configurações ao arquivo vhost
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
NameVirtualHost *:8888
<VirtualHost *:8888 >
ServerName l.ssc.com
DocumentRoot "/Applications/MAMP/htdocs/code/benu/ssc-portal/public/"
<Directory "/Applications/MAMP/htdocs/code/benu/ssc-portal/public/">
# Require all granted
Options All
AllowOverride All
Order allow,deny
Allow from all
XSendFilePath "/Applications/MAMP/htdocs"
</Directory>
</VirtualHost>
<VirtualHost *:8888 >
ServerName l.pm.com
DocumentRoot "/Applications/MAMP/htdocs/code/biossantibodies/public/"
<Directory "/Applications/MAMP/htdocs/code/biossantibodies/public/">
# Require all granted
Options All
AllowOverride All
Order allow,deny
Allow from all
XSendFilePath "/Applications/MAMP/htdocs"
</Directory>
</VirtualHost>