on Mac OSX 10.11.4 El Capitan
If you create virtual host, you can use document root for each project.
$ sudo vim /etc/apache2/extra/httpd-vhosts.conf
Add like following.
In this case 3025 is port number.
You can add port number you like.
Edit port number & directory name.
<VirtualHost *:3025>
DocumentRoot "/Library/WebServer/Documents/hoge"
<Directory "/Library/WebServer/Documents/hoge">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
When you finished add above codes.
Type :wq
command on Vim editor to save & finish Vim editor.
$ sudo vim /etc/apache2/httpd.conf
Add following code around Line 52~ to open port.
Listen 3025
When you finished to edit.
Type this command :wq
to save & finish Vim editor.
$ sudo apachectl restart
That's all.
From now you can access to
http://localhost:3025/