Perl Extensions IntroductionZeus Web Server (4.2 and later) includes an external runner with an embedded Perl interpreter and a set of support modules that allow you to run persistent Perl applications and scripts alongside the web server. These Perl applications can modify the behaviour of the web server in a wide range of ways, from implementing custom authentication schemes to changing the way that requests are logged. HandlersThe Perl Extensions add a number of extra hooks to the Zeus Web Server's request processing. On each of these hooks it is possible to install a Perl handler. Handlers can collect information about the incoming request and manipulate the response either by generating it themselves or by issuing directives to the web server to adjust its behaviour. Process modelThe Perl interpreters responsible for executing handlers do not run in the web server itself, but in a pool of external processes. The web server communicates with these processes whenever it wants to run a handler. This model allows Perl handlers to do whatever they need to do, including blocking, without hampering the performance of the optimized web server core. If dealing with a client connection involves executing several handlers, the same Perl runner will be used for all of them. This allows the semantics of Apache mod_perl to be preserved when passing information from one handler to another. When a handler completes, the Perl interpreter continues running, so state may be preserved for later requests; this may allow, for instance, the use of persistent database connections in order to avoid the overhead of setting them up every time. Getting startedPlease refer to our getting started guide. For extensive documentation on Apache mod_perl, much of which applies to the Zeus Perl Extensions, see the mod_perl web site. Advantages
Disadvantages
Content Manager
[Administrator] 16 December 2005
|
Recent Articles
Other Resources
|


