|
httpd.conf.perl configuration
| |
Open the httpd.conf.perl Apche Configuration file for editing and make the following changes:
|
|
Configure Apache User and Group
|
|---|
|
Change the Apache User and Group settings to 'www' (or whatever you desire, just substitute your user/group for www/www)
|
User www
Group www
|
|
Configure Listen Directive
|
|---|
|
The Listen Directive must be set to listen on ports 8000 and 8001 that correspond to the ports set in the proxypass statements in httpd.conf.ssl.
|
Listen 8000
Listen 8001
|
|
ModPerl Configuration
|
|---|
|
Enable Mod_Perl Web Server access to the 'script' directory
|
<Directory "/opt/script/">
AllowOverride None
Options ExecCGI
PerlSendHeader Off
SetHandler perl-script
PerlHandler Apache::Registry
Order allow,deny
Allow from all
</Directory>
|
|
ScriptAlias Diective
|
|---|
|
Enable Web Server access to the DataBreeze Entry Script 'dbz'
|
ScriptAliasMatch /dbz$ "/opt/script/dbz"
|
|
Preload Script Load
|
|---|
|
Configure Apache to run the preload script at Apache startup.
|
PerlRequire /opt/conf/preload.pl
|
|
Remote Function call
|
|---|
|
Configure the mod_proxy_add_forward functionality
|
PerlPostReadRequestHandler My::ProxyRemoteAddr
|
|
Additional configuration
|
|---|
|
Due to issues of ModPerl scalability, the number of Child Server process to spawn should be set relatively low. The following are suggestions only, your settings should reflect the amount of memory on the ModPerl Server.
|
MaxClients 30
KeepAlive off
|
|
This setting is extremely important because each Child Server Process will slowly grow if unchecked. This setting will regenerate each Child after 30 accesses. You should monitor your ModPerl Child Server processes and set this value appropriately.
|
MaxRequestsPerChild 30
|