Configuring your httpd.conf file

Using Notepad++, open c:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf and make the following changes to the lines that set the DocumentRoot and your Directory.  In both cases set the directory to 'c:/wamp/www/drupal-6.12'.  Please note the forward slash, which differs from Vista's ordinary usage of a backward slash.  Please also note the additional forward slash that is appended to the new document root.  For the brave souls among you, you might experiment with setting the document root to Apache's default document root: C:\wamp\bin\apache\apache2.2.11\htdocs.

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "c:/wamp/www/drupal-6.12"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "c:/wamp/www/drupal-6.12">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>

Near the end of the file, look for these two lines.

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

Delete the hash sign so the line looks like this:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

This change in settings allows us to use an include file, httpd-vhosts.conf, which provides references to virtual hosting that we will need for our multisite Drupal project.






About Kipp Elliott Watson

Kipp Elliott Watson is a Drupaler (Drupalista?) who lives in Northern New Jersey and subscribes enthusiastically to the principles that have helped broaden Drupal's community and have brought Drupal to the forefront of the CMS revolution.  He is occasionally available for Drupal projects and would love to hear from you if you need a Drupal consultant.  His resume can be viewed and downloaded here.  

If you would like to learn about the Ideal Drupal Development Environment, visit: http://sites.google.com/site/theidealdrupalenvironment/

If you would like to add a Google Wave to a fresh Drupal installation, visit:

Drupal Developer for Hire

Looking to hire a Drupal Developer? Email me at Kipp period Watson at gmail period com. Just mention this website, so I'll know where you're coming from!