s

VirtualHost の設定

複数のプロジェクトが作成しやすいようバーチャルホストの設定は以下のようにしました。

<VirtualHost 127.0.0.1>    DocumentRoot /Users/xxxxx/Sites/project1    ServerName project1    ErrorLog /var/log/httpd/error_log    CustomLog /var/log/httpd/access_log common

    DirectoryIndex index.php index.phtml index.html</VirtualHost>

/etc/hosts にも IP アドレスに対応した設定を行います。 プロジェクトを追加する場合は、project2、project3 と増やしていきます。"project" という名前はプロジェクトに合わせて変更してください。