Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xsawyerx/perlbal-plugin-forwardedfor
Perlbal::Plugin::ForwardedFor - Rename the X-Forwarded-For in Perlbal
https://github.com/xsawyerx/perlbal-plugin-forwardedfor
Last synced: 28 days ago
JSON representation
Perlbal::Plugin::ForwardedFor - Rename the X-Forwarded-For in Perlbal
- Host: GitHub
- URL: https://github.com/xsawyerx/perlbal-plugin-forwardedfor
- Owner: xsawyerx
- License: other
- Created: 2010-05-13T13:08:25.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-05-20T07:22:31.000Z (over 14 years ago)
- Last Synced: 2024-10-13T11:37:43.719Z (about 1 month ago)
- Language: Perl
- Homepage:
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
NAME
Perlbal::Plugin::ForwardedFor - Rename the X-Forwarded-For header in
PerlbalVERSION
Version 0.02SYNOPSIS
This plugin changes the header Perlbal will use to delcare itself as a
proxy.Usually Perlbal will - perl RFC - add itself to X-Forwarded-For, but
this plugins allows you to change that to any header you want, so you
could differ Perlbal from other possible proxies the user might have.In your Perlbal configuration:
LOAD ForwardedFor
CREATE SERVICE http_balancer
SET role = reverse_proxy
SET pool = machines
SET plugins = ForwardedFor
FORWARDED_FOR = X-Perlbal-Forwarded-ForSUBROUTINES/METHODS
load
Register a global hook and check for configuration problems.register
Register a service hook to run a callback to rewrite the header.rewrite_header
The function that is called as the callback.Rewrites the *X-Forwarded-For* to whatever header name you specified in
the configuration file.AUTHOR
Sawyer X, ""BUGS
This plugin is on Github and you can file issues on:
SUPPORT
You can find documentation for this module with the perldoc command.perldoc Perlbal::Plugin::ForwardedFor
You can also look for information at:
* Github issue tracker:
* Github page:
* AnnoCPAN: Annotated CPAN documentation
* CPAN Ratings
* Search CPAN
LICENSE AND COPYRIGHT
Copyright 2010 Sawyer X.This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.See http://dev.perl.org/licenses/ for more information.