print OFH <<EOD ;
#
# Testconfig for HTML::Embperl make test
#
ServerRoot $EPPATH/test
ServerName localhost
DocumentRoot $EPPATH/test
Port $EPPORT
EOD
if ($^O ne 'MSWin32')
{
print OFH <<EOD ;
User $EPUSER
Group $EPGROUP
MinSpareServers 1
MaxSpareServers 2
StartServers 2
MaxClients 2
MaxRequestsPerChild 0
EOD
}
print OFH <<EOD ;
$EPMODPERL
DirectoryIndex index.htm
$EPSTRONGHOLDKEY
#-Tw
PerlTaintCheck On
PerlWarn On
SetEnv EMBPERL_DEBUG $EPDEBUG
SetEnv EMBPERL_VIRTLOG /embperl/log
PerlSetEnv EMBPERL_LOG $EPPATH/test/tmp/test.log
SetEnv EMBPERL_LOG $EPPATH/test/tmp/test.log
EOD
if ($EPSESSIONVERSION)
{
print OFH <<EOD ;
PerlSetEnv EMBPERL_SESSION_CLASS $EPSESSIONCLASS
SetEnv EMBPERL_SESSION_CLASS $EPSESSIONCLASS
PerlSetEnv SESSION_FILE_DIRECTORY $EPPATH/test/tmp
PerlSetEnv SESSION_DBI_DATASOURCE $EPSESSIONDS
EOD
}
if ($EPSESSIONVERSION && $EPSESSIONVERSION >= 1)
{
print OFH <<EOD ;
PerlSetEnv EMBPERL_SESSION_CLASSES "FileStore NullLocker"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=$EPPATH/test/tmp"
SetEnv EMBPERL_SESSION_CLASSES "FileStore NullLocker"
SetEnv EMBPERL_SESSION_ARGS "Directory=$EPPATH/test/tmp"
EOD
}
print OFH <<EOD ;
SetEnv EMBPERL_ALLOW asc|\\.htm\$
PerlScript $EPPATH/test/conf/$EPSTARTUP
<Location /embperl/log>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
AddType text/html .html
AddType text/html .htm
AddType text/html .xhtm
Alias /embperl/sub/ $EPPATH/test/html/
Alias /embperl/ $EPPATH/test/html/
Alias /eg/ $EPPATH/eg/
<Location /embperl/sub>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv LOC embperl_sub
</Location>
<Location /embperl>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv LOC embperl
</Location>
<Location /embperl/safe>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 4
</Location>
<Location /embperl/opmask>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 12
PerlSetEnv EMBPERL_COMPARTMENT TEST
</Location>
<Location /embperl/rawinput>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 16
</Location>
<Location /embperl/nochdir>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 384
</Location>
<Location /embperl/nph>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 64
</Location>
<Location /embperl/stdout>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
#PerlSetEnv EMBPERL_OPTIONS 16384
PerlSetEnv EMBPERL_OPTIONS 16400
PerlSetEnv EMBPERL_ESCMODE 0
PerlSetupEnv Off
</Location>
<Location /embperl/allform>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 8192
</Location>
<Location /embperl/noerr>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 2
</Location>
<Location /embperl/errdoc>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OPTIONS 262144
ErrorDocument 500 /html/errmsg.htm
</Location>
<Location /embperl/match>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_FILESMATCH \\.htm\$
</Location>
<Location /embperl/ifunc>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_INPUT_FUNC \"ProxyInput, /embperl/ifunc, http://localhost:$EPPORT/embperl/ifuncsrc\"
</Location>
<Location /embperl/ifuncsrc>
SetHandler server-parsed
Options +Includes
</Location>
AddType text/html .ehtml
#<FilesMatch \".*\.ehtml$\">
#SetHandler perl-script
#PerlHandler HTML::Embperl
#Options ExecCGI
#PerlSetEnv EMBPERL_INPUT_FUNC \"ProxyInput, , http://localhost:8529/src\"
#</FilesMatch>
<Location /src>
SetHandler server-parsed
Options +Includes
</Location>
#
# Configuration for mod_inlcude via ProxyInput on two ports
#
#Listen $EPPORT
#Listen $EPPORT2
#
#<VirtualHost www:$EPPORT>
#
#<FilesMatch \".*\\.ehtml\$\">
#SetHandler perl-script
#PerlHandler HTML::Embperl
#Options ExecCGI
#PerlSetEnv EMBPERL_INPUT_FUNC \"ProxyInput, , http://www:$EPPORT2\"
#</FilesMatch>
#
#</VirtualHost>
#
#
#<VirtualHost www:$EPPORT2>
#
#AddType text/html .ehtml
#AddHandler server-parsed .ehtml
#Options +Includes
#
#</VirtualHost>
#
<Location /embperl/ofunc>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
PerlSetEnv EMBPERL_OUTPUT_FUNC \"LogOutput, $EPPATH/test/tmp/log.out\"
</Location>
Alias /cgi-bin/ $EPPATH/test/html/
Alias /cgi-bin-32/ $EPPATH/test/html/
ScriptAlias /cgi/ $EPPATH/
<Location /cgi-bin>
Action text/html /cgi/embpcgi.test.pl
Options ExecCGI
</Location>
<Location /cgi-bin-32>
Action text/html /cgi/embpcgi.test.bat
Options ExecCGI
</Location>
<Location /perl/perl-status>
SetHandler perl-script
PerlHandler Apache::Status
</Location>
<Location /embperl/registry>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
</Location>
<Location /eg>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
ErrorLog tmp/httpd.err.log
PidFile tmp/httpd.pid
AccessConfig conf/null
ResourceConfig conf/null
TypesConfig conf/null
#TransferLog $EPNULL
#ScoreBoardFile $EPNULL
LockFile tmp/httpd.lock
<IfModule apache_ssl.c>
SSLDisable
</IfModule>
EOD
if (!$EPSTRONGHOLDKEY && $EPSSLDISABLE)
{
print OFH <<EOD ;
<IfModule mod_ssl.c>
SSLDisable
SSLCacheServerPort $EPPORT2
SSLCacheServerPath tmp
</IfModule>
EOD
}