# Copyright (C) 2004-2005  Joshua Hoblitt
#
# $Id: apache_setup.txt,v 1.3 2005-06-30 02:35:05 jhoblitt Exp $

- mod_perl-1.29 install
perl Makefile.PL USE_APXS=1 INSTALLDIRS=vendor WITH_APXS=/usr/sbin/apxs EVERYTHING=1 PERL_DEBUG=1

#MP_TRACE = 1 MP_DEBUG = 1 MP_USE_DSO = 1 MP_INST_APACHE2 = 1 MP_APXS = /usr/sbin/apxs2

- add the "nebulous" group to /etc/group
- configure Apache to run as the nebulous group. 

# out of data from here down...

#
# CGI interface
#

ScriptAlias /nebulous /usr/local/apache/perl/imageserver.pl

<Directory "/usr/local/apache/perl">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>

PerlModule Apache::PerlRun
<Location /perl>
        SetHandler perl-script
        PerlHandler Apache::PerlRun
        Options ExecCGI
        allow from all
        PerlSendHeader On
</Location>

#
# Nebulous::Apache interface
#

PerlModule Apache::DBI
PerlModule Nebulous::Apache

<Location /nebulous>
        SetHandler perl-script
        PerlHandler Nebulous::Apache
</Location>

