GX::Engine::Apache2 - Apache2 / mod_perl 2.x engine component
package MyApp::Engine; use GX::Engine::Apache2; MyApp::Engine->setup( max_request_size => 1048576, max_request_memory_usage => 16384 ); 1;
This module provides the GX::Engine::Apache2 class which extends the GX::Engine class.
new
Returns the engine component instance.
$engine = $engine_class->new;
$engine ( GX::Engine::Apache2 object )
$engine
GX::Exception
setup
Sets up the engine component.
$engine_class->setup( %options );
buffer_size ( integer )
buffer_size
Defaults to 8192 bytes.
max_request_memory_usage ( integer )
max_request_memory_usage
Defaults to 16384 bytes.
max_request_size ( integer )
max_request_size
Defaults to 1048576 bytes.
finalize_response_headers
Handler.
$engine->finalize_response_headers( $context );
$context ( GX::Context object )
$context
process_request_body
$engine->process_request_body( $context );
process_request_headers
$engine->process_request_headers( $context );
send_response
$engine->send_response( $context );
handler
Internal method.
$application_class->handler( $request_record );
$request_record ( Apache2::RequestRec object )
$request_record
request_record
Returns the current request record.
$request_record = $context->request_record;
For internal use only.
Input stream class
GX::Engine::Apache2::InputStream
Output stream class
GX::Engine::Apache2::OutputStream
Error stream class
GX::Engine::Apache2::ErrorStream
Example (Apache/2.2.13 on openSUSE 11.2):
/etc/apache2/default-server.conf:
LoadModule perl_module /usr/lib/apache2/mod_perl.so <VirtualHost *:80> ServerName localhost DocumentRoot /srv/www/myapp/public <Directory /srv/www/myapp/public> Order Deny,Allow Allow from All </Directory> PerlOptions +Parent PerlSwitches -I /srv/www/myapp/lib PerlModule MyApp <Location /> SetHandler perl-script PerlResponseHandler MyApp DirectorySlash Off </Location> <Location /static> SetHandler None </Location> <Location /favicon.ico> SetHandler None </Location> <Location /error> SetHandler None </Location> </VirtualHost>
This module currently only supports the Apache Prefork MPM (mpm_prefork_module).
http://httpd.apache.org/
http://perl.apache.org/
Jörg A. Uzarek <uzarek@runlevelnull.de>
Copyright (c) 2009-2011 Jörg A. Uzarek.
This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.
To install GX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GX
CPAN shell
perl -MCPAN -e shell install GX
For more information on module installation, please visit the detailed CPAN module installation guide.