Objective: do http://test.local and get the index from testsite, do http://l4.dev and serve the index from lara4.
What I don't want is the first index from the virtual host listing it can find
How should multiple local sites be managed? - best practice - (apache version 2.2)
This Is what I added to the httpd.config (is this the best way, - to add it directly to httpd.config?)
NameVirtualHost *:80
<VirtualHost *>
DocumentRoot "/Users/redres/Webdev/lara4"
ServerName l4.dev
ServerAlias www.l4.dev
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Users/redres/Webdev/testsite"
ServerName test.local
ServerAlias www.test.local
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Users/redres/Webdev"
ServerName localhost
</VirtualHost>
<Directory "/Users/redres/Webdev">
Options All
AllowOverride All
Order allow,deny
Allow from All
</Directory>
this is the hosts file
127.0.0.1 test.local
127.0.0.1 l4.dev
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
thanks