/etc/hosts and virtual hosts files on the mac

Submitted by barnettech on

http://foundationphp.com/tutorials/vhosts_leopard.php

http://stackoverflow.com/questions/4262270/htaccess-throws-403-forbidde…

edit your /etc/hosts file and add the entry
here's an example:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost
127.0.0.1       babsoncomm_dev
127.0.0.1       acquia_drupal
127.0.0.1       babson_dev

Using Zend Community edition edit the
/usr/local/zend/apache2/conf/extra/httpd-vhosts.conf file

so I added this entry which corresponds to the babson_dev entry in /etc/hosts:


    DocumentRoot "/Users/barnettech/htdocs_zend/at_acquia/babson/trunk/docroot"
    ServerName babson_dev
    ErrorLog "logs/babson_dev.com-error_log"
    CustomLog "logs/babson_dev.com-access_log" common
    
      Options +Indexes +FollowSymLinks +ExecCGI
      DirectoryIndex index.php
      AllowOverride All
      Order allow,deny
      Allow from all