Вот шаги, которые я предпринял, чтобы достичь этого
- закомментировал акции 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>
Не забудьте включить файл vhost, раскомментируйте строку ниже, как
# Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
- Добавить конфиги в 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>