やったこと
バーチャルホスト設定を有効化する
"C:\MAMP\conf\apache\httpd.conf"を設定
初期設定は"Include conf/extra/httpd-vhosts.conf"が無効になっているので有効にする。
# Virtual hosts
Include "C:\MAMP\conf\apache\extra\httpd-vhosts.conf"
ホストの設定
"C:\MAMP\conf\apache\extra"にC:\MAMP\bin\apache\conf\extra\httpd-vhosts.conf"をコピー
下記のように設定
<VirtualHost *:80>
DocumentRoot "C:\MAMP\htdocs\fanawill"
ServerName local-fanawill.com
<Directory "C:\MAMP\htdocs\fanawill">
AllowOverride all
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:\MAMP\htdocs\xxxxxx"
ServerName local-xxxxxx.com
<Directory "C:\MAMP\htdocs\xxxxxx">
AllowOverride all
</Directory>
</VirtualHost>
hostsの設定
"C:\Windows\System32\drivers\etc\hosts"に下記を追加
127.0.0.1 local-fanawill.com
127.0.0.1 local-xxxxxx.com