It is always good to set up a virtual host for your project when you are developing an application. Here is an example of two virtual hosts that I have set up for two of my projects. One called crm and one called blog and both projects are located under /Users/sfprojects/
This is what I have added to the end of my httpd.conf
# Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 127.0.0.1:8080 ServerName crm DocumentRoot "/Users/sfprojects/crm/web" DirectoryIndex app.php AllowOverride All Allow from All ServerName blog DocumentRoot "/Users/sfprojects/blog/web" DirectoryIndex app.php AllowOverride All Allow from All
and this is what i have added to my /etc/hosts file
127.0.0.1 crm 127.0.0.1 blog
Happy hacking!