#this file will be Include-d by @ServerRoot@/httpd.conf
# Adjust PerlInterpMax and PerlInterpMaxSpare if the requirements change
# at the moment all tests require only 1 interprter
PerlInterpStart 1
PerlInterpMax 1
PerlInterpMinSpare 1
PerlInterpMaxSpare 1
# make sure that we test under Taint and warnings mode enabled
PerlSwitches -wT
PerlSwitches -I@ServerRoot@/../lib \
-I@ServerRoot@/../../Apache-Test/lib \
-I@ServerRoot@/../../lib \
-I@ServerRoot@/../../blib/lib \
-I@ServerRoot@/../../blib/arch
# run on startup
PerlRequire @ServerRoot@/conf/modperl_extra_startup.pl
PerlSetVar ModPerl::RegistryCooker::DEBUG 2
PerlModule ModPerl::RegistryCooker
PerlModule ModPerl::Util
#############################
### Normal registry setup ###
#############################
Alias /registry/ @ServerRoot@/cgi-bin/
Alias /dirindex/ @ServerRoot@/cgi-bin/
Alias /registry_bb/ @ServerRoot@/cgi-bin/
Alias /registry_oo_conf/ @ServerRoot@/cgi-bin/
Alias /registry_prefork/ @ServerRoot@/cgi-bin/
Alias /perlrun/ @ServerRoot@/cgi-bin/
Alias /perlrun_prefork/ @ServerRoot@/cgi-bin/
Alias /nph/ @ServerRoot@/cgi-bin/
Alias /registry_modperl_handler/ @ServerRoot@/cgi-bin/
Alias /rewrite_env/ @ServerRoot@/cgi-bin/
ScriptAlias /cgi-bin/ @ServerRoot@/cgi-bin/
PerlModule ModPerl::RegistryBB
PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::RegistryBB
PerlOptions +ParseHeaders
PerlModule ModPerl::Registry
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
AddHandler perl-script .pl
Options +ExecCGI
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
DirectoryIndex cgi.pl
SetHandler modperl
Options +ExecCGI
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::Registry->handler
PerlOptions +ParseHeaders
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::Registry
# don't preload ModPerl::RegistryPrefork as it won't load under
# threaded MPMs
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::RegistryPrefork
PerlOptions +ParseHeaders
# don't preload ModPerl::PerlRunPrefork as it won't load under
# threaded MPMs
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::PerlRunPrefork
PerlOptions +ParseHeaders
PerlModule ModPerl::PerlRun
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
#######################################
### Same interpreter registry setup ###
#######################################
Alias /same_interp/registry/ @ServerRoot@/cgi-bin/
Alias /same_interp/registry_bb/ @ServerRoot@/cgi-bin/
Alias /same_interp/registry_oo_conf/ @ServerRoot@/cgi-bin/
Alias /same_interp/perlrun/ @ServerRoot@/cgi-bin/
PerlModule Apache::TestHandler
PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlFixupHandler Apache::TestHandler::same_interp_fixup
PerlResponseHandler ModPerl::RegistryBB
PerlOptions +ParseHeaders
# PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlFixupHandler Apache::TestHandler::same_interp_fixup
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlFixupHandler Apache::TestHandler::same_interp_fixup
PerlResponseHandler ModPerl::Registry->handler
PerlOptions +ParseHeaders
PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlFixupHandler Apache::TestHandler::same_interp_fixup
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
### the 404 test ###
Alias /error_document/ @ServerRoot@/cgi-bin/
ErrorDocument 404 /error_document/404.pl
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::Registry
### deflate tests ###
Alias /registry_bb_deflate/ @ServerRoot@/cgi-bin/
#PerlOutputFilterHandler ModPerl::TestFilterDebug::snoop_connection
PerlModule ModPerl::RegistryBB
PerlOptions +GlobalRequest
SetHandler perl-script
Options +ExecCGI
PerlResponseHandler ModPerl::RegistryBB
PerlOptions +ParseHeaders
#PerlOutputFilterHandler ModPerl::TestFilterDebug::snoop_request
SetOutputFilter DEFLATE
#
# keep everything self-contained, to avoid problems with sandboxes
# which break when things try to run off /tmp
#
# XXX: consider folding the the following two settings into
# Apache-Test's autogenerated httpd.conf
ScriptSock logs/cgisock
#
# XXX: would be nice to have Apache-Test support a new 'tmp' token
# (similar to t_logs) which will map onto t/tmp by default and provide
# a new -tmp option to override this default
SetEnv TMPDIR @t_logs@
#
RewriteEngine On
RewriteLogLevel 9
RewriteLog @ServerRoot@/logs/rewrite_log
RewriteRule /rewritetest /rewrite_env/env_val.pl?REWRITE_TEST [E=REWRITE_TEST:GOTCHA,PT,NS,L]
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders