Apache::RewritingProxy - proxy that works by rewriting requested documents with no client proxy config needed.
# Configuration in httpd.conf
<Location /foo> SetHandler perl-script PerlHandler Apache::RewritingProxy Options ExecCGI PerlSendHeader On </Location>
requests to /foo/http://domain.dom/ will return the resource located at http://domain.dom with all links pointing to /foo/http://otherlink.dom
This module allows proxying of web sites without any configuration changes on the client's part. The client is simply pointed to a URL using this module and it fetches the resource and rewrites all links to continue using this proxy.
perl Makefile.PL; make; make install;
You need the following modules installed for this module to work:
LWP::UserAgent HTML::TokeParser URI::URL Of course, mod_perl and Apache would also help greatly.
Make cookies work
Fix occasional query string munging for redirected requests
Add caching or incorporate some other caching mechanism
Enable this module to at least print scripts that occur within comments
Add an external script to enable this to be called as a cgi or a mod_perl module (for testing)
mod_perl(3), Apache(3), LWP::UserAgent(3)
Apache::RewritingProxy by Ken Hagan <ken.hagan@louisville.edu>
The Apache::RewritingProxy module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Apache::RewritingProxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::RewritingProxy
CPAN shell
perl -MCPAN -e shell install Apache::RewritingProxy
For more information on module installation, please visit the detailed CPAN module installation guide.