NAME
Perlbal::Plugin::XFFExtras - Perlbal plugin that can optionally add an X-Forwarded-Port and/or X-Forwarded-Proto header to reverse proxied requests.
SYNOPSIS
# in perlbal.confLOAD XFFExtraCREATE POOL webPOOL web ADD 10.0.0.1:80CREATE SERVICE proxySET role = reverse_proxySET listen = 0.0.0.0:80SET pool = webSET plugins = XFFExtrasSET send_backend_port = yesSET send_backend_proto = yesENABLE proxy
DESCRIPTION
This plugin adds optional headers to be sent to backend servers in reverse proxy mode.
HEADERS
- •
-
X-Forwarded-Port
This header will contain an integer value indicating the port that the peer connected to. This will correspond to the port number specified on the listen line of the perlbal service that initially handled the connection.
- •
-
X-Forwarded-Proto
This header will contain a string indicating the protocol the client connected to perlbal via. Currently this will be either 'http' or 'https'.
AUTHOR
Jonathan Steinert, <[email protected]>
COPYRIGHT AND LICENSE
Copyright (C) 2012 by Say Media Inc, <[email protected]>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.