Hier die Schritte, die ich unternommen habe, um dies zu erreichen
- Die Aktie MAMP DOCUMENT_ROOT wurde auskommentiert
/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>
Stellen Sie sicher, dass Sie eine vhost-Datei einschließen, indem Sie die folgende Zeile auskommentieren
# Virtual hosts Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
- Fügen Sie der vhost-Datei configs hinzu
/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>