# $Id: kafta.conf,v 1.3 2007-06-01 11:22:22 mike Exp $

# Apache 1.3 configuration for kafta.  See the comments in xeno.conf

<VirtualHost resolver.indexdata.com>
    ServerName resolver.indexdata.com
    ServerAlias dbc.resolver.indexdata.com
    ServerAlias talis.resolver.indexdata.com

    DocumentRoot    /home/mike/cvs/resolver/web/htdocs
    ErrorLog        /var/log/apache-irspy/keystone-resolver-error.log
    CustomLog       /var/log/apache-irspy/keystone-resolver-access.log combined
    PerlSetVar KRxsltdir /home/mike/cvs/resolver/etc/xslt

    RewriteEngine on
    RewriteLog /var/log/apache-irspy/keystone-resolver-rewrite.log
    RewriteLogLevel 99
    RewriteRule ^/(index.html|resolve|cookiepusherpusher)?$ /mod_perl/$1
    RewriteRule ^/mod_perl/resolve/(.+) /mod_perl/resolve?opt_db=$1

    <Directory /home/mike/cvs/resolver/web/htdocs/mod_perl>
	Options +ExecCGI
	SetHandler perl-script
	PerlHandler Apache::Registry
	PerlSetEnv PERL5LIB /home/mike/cvs/resolver/lib
	# I don't understand why I need the next line, but I do
	PerlSendHeader On
    </Directory>

    <Directory /home/mike/cvs/resolver/web/htdocs/admin>
	<FilesMatch "\.(html|css)$">
	    SetHandler perl-script
	    PerlHandler HTML::Mason::ApacheHandler
	</FilesMatch>
	PerlAddVar MasonCompRoot "private => /home/mike/cvs/resolver/web/htdocs/admin"
	PerlSetVar MasonDataDir              /home/mike/cvs/resolver/web/data
	PerlSetEnv PERL5LIB /home/mike/cvs/resolver/lib
    </Directory>
</VirtualHost>
