First find the path to yours httpd.conf. In my case, the path is as follows:
/Applications/MAMP/conf/apache/httpd.conf
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
VirtualHosts ServerName , http://crud.com. /etc/hosts
127.0.0.1 crud.com
/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot /path_to/admingenerator/web
DirectoryIndex index.php
ServerName crud.com
ServerAlias www.crud.com
<Directory "/path_to/admingenerator/web">
Options Indexes FollowSymLinks
Order Allow,Deny
Allow from all
AllowOverride all
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir none
</ifModule>
</Directory>
</VirtualHost>
, MAMP - http://crud.com.