The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::ProxyPassThru - Skeleton for vanilla proxy

SYNOPSIS

 #httpd.conf or some such
 PerlTransHandler  Apache::ProxyPassThru
 PerlSetVar        ProxyPassThru_DumpHeaders 1

DESCRIPTION

This module uses libwww-perl as it's web client, feeding the response back into the Apache API request_rec structure. `PerlHandler' will only be invoked if the request is a proxy request, otherwise, your normal server configuration will handle the request.

If used with the Apache::DumpHeaders module it lets you view the headers from another site you are accessing.

PARAMETERS

This module is configured with PerlSetVar's.

ProxyPassThru_DumpHeaders

If this is set to a true value we'll set r->notes("DumpHeaders") to a true value.

Makes it easy to have Apache::DumpHeaders only dump headers from your proxied requests.

SEE ALSO

mod_perl(3), Apache(3), LWP::UserAgent(3)

AUTHOR

Ask Bjoern Hansen <ask@valueclick.com>.

Originally by Doug MacEachern.