Fundraising/tech/Apache httpd

From Wikitech

Apache httpd

You may already have Apache httpd 2.2 already installed.

Check by going to the CLI and typing:

httpd -v

You should get output like:

Server version: Apache/2.2.21 (Unix)
Server built:   Nov 15 2011 15:12:57

You will need to enable name based virtual hosting to follow the fundraising tutorials.

You can append something like this to the bottom of your httpd.conf file:

NameVirtualHost *:80

<VirtualHost _default_:80>
    DocumentRoot "/www/sites/localhost/default/public"

    <Directory "/www/sites/localhost/default/public">
        <IfModule mod_dav.c>
            DAV Off
        AllowOverride None
        Order allow,deny
        Allow from all


# Virtual Hosts
Include /www/conf/httpd/sites/*.conf

<IfModule php5_module>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
        <IfModule dir_module>
                DirectoryIndex index.php index.html