Lemonldap::NG::Handler::Proxy - Perl extension to add a reverse-proxy to a Lemonldap::NG handler.
apache/conf/httpd.conf: # Global reverse proxy PerlModule Lemonldap::NG::Handler::Proxy SetHandler perl-script PerlHandler Lemonldap::NG::Handler::Proxy PerlSetVar LmProxyPass http://real-server.com/ PerlSetVar LmLocationToReplace http://real-server.com/,https://lemon.server/ PerlSetVar LmCookieDomainToReplace real-server.com,lemon.server
# Or just on a Location PerlModule Lemonldap::NG::Handler::Proxy <Location /reverse-area> SetHandler perl-script PerlHandler Lemonldap::NG::Handler::Proxy PerlSetVar LmProxyPass https://real-server.com/ PerlSetVar LmLocationToReplace http://real-server.com/,https://lemon.server/ PerlSetVar LmCookieDomainToReplace real-server.com,lemon.server </Location>
This library adds a reverse-proxy functionality to Apache. It is useful to manage redirections if the remote host use it without the good domain.
LmProxyPass (required): Real server to push request to
LmLocationToReplace (optional): substitution to do to avoid bad redirections. See synopsys for usage.
LmCookieDomainToReplace (optional): substitution to do to set cookies from proxied application. See synopsys for usage.
None by default.
Lemonldap::NG::Handler(3), LWP::UserAgent, http://lemonldap-ng.org/
Use OW2 system to report bug or ask for features: http://jira.ow2.org
Lemonldap::NG is available at http://forge.objectweb.org/project/showfiles.php?group_id=274
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
To install Lemonldap::NG::Handler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lemonldap::NG::Handler
CPAN shell
perl -MCPAN -e shell install Lemonldap::NG::Handler
For more information on module installation, please visit the detailed CPAN module installation guide.