OpenFrame::Segment::Apache - Apache segments for OpenFrame 3
# tricky to explain, but mostly: PerlHandler YourHandler
The OpenFrame::Segment::Apache distribution provides segments for OpenFrame 3 that convert from Apache requests to OpenFrame::Request objects and from OpenFrame::Response objects to produce an Apache response.
It will be demonstrated with a simple OpenFrame example which simply loads static content, OpenFrame::Example::ApacheSimple.
The following configuration should be in httpd.conf:
SetHandler perl-script PerlSetVar cwd /home/website/ # PerlSetVar debug 1 PerlHandler OpenFrame::Example::ApacheSimple
The actual handler is quite short. The important part is to set up a pipeline which has a OpenFrame::Segment::Apache::Request segment at the beginning and a OpenFrame::Segment::Apache::Response as a cleanup segment.
Note that there is also a OpenFrame::Segment::Apache::NoImages which declines and lets Apache serve images.
OpenFrame::Segment::Apache::NoImages
Leon Brocard <acme@astray.com>
Copyright 2002 Fotango Ltd. Licensed under the same terms as Perl itself.
To install OpenFrame::Segment::Apache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame::Segment::Apache
CPAN shell
perl -MCPAN -e shell install OpenFrame::Segment::Apache
For more information on module installation, please visit the detailed CPAN module installation guide.