Corporate   Documentation   Products   Login
 
  Overview

 
  Tour

 
  Information

 
  Demos

 
  Pricing

 
  Support

 
  Platform

 
  Download

 
  Install

Configure Apache

Configuration of the Apache ModPerl Server 6 of 10 


The Apache ModPerl Server will receive client requests forwarded from the Apache SSL Server, serving only dynamic content from ports 8000 and 8001. The ModPerl server will recieve the ProxyPass request, generate a result and send it back to the SSL Apache Server.

In this example the ModPerl Server has been compiled and installed into the /opt/apache-perl directory as documented in the Apache ModPerl Server Installation.

Create the Apache ModPerl Configuration file
From the command line make a copy of the httpd.conf file included with the Apache ModPerl distribution and move it to the /opt/conf/ directory, renaming it 'httpd.conf.perl.

# cp /opt/apache-perl/conf/httpd.conf /opt/conf/httpd.conf.perl


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






© Copyright 2000 DataFree, Inc. All rights reserved
Legal Disclaimer  Terms of Use  Privacy Policy