1Perlbal::Plugin::XFFExtUrsaesr(3C)ontributed Perl DocumePnetraltbiaoln::Plugin::XFFExtras(3)
2
3
4

NAME

6       Perlbal::Plugin::XFFExtras - Perlbal plugin that can optionally add an
7       X-Forwarded-Port and/or X-Forwarded-Proto header to reverse proxied
8       requests.
9

SYNOPSIS

11           # in perlbal.conf
12
13           LOAD XFFExtra
14
15           CREATE POOL web
16               POOL web ADD 10.0.0.1:80
17
18           CREATE SERVICE proxy
19               SET role                        = reverse_proxy
20               SET listen                      = 0.0.0.0:80
21               SET pool                        = web
22
23               SET plugins             = XFFExtras
24
25               SET send_backend_port   = yes
26               SET send_backend_proto  = yes
27           ENABLE proxy
28

DESCRIPTION

30       This plugin adds optional headers to be sent to backend servers in
31       reverse proxy mode.
32

HEADERS

34       ·   X-Forwarded-Port
35
36           This header will contain an integer value indicating the port that
37           the peer connected to.  This will correspond to the port number
38           specified on the listen line of the perlbal service that initially
39           handled the connection.
40
41       ·   X-Forwarded-Proto
42
43           This header will contain a string indicating the protocol the
44           client connected to perlbal via. Currently this will be either
45           'http' or 'https'.
46

AUTHOR

48       Jonathan Steinert, <hachi@kuiki.net>
49
51       Copyright (C) 2012 by Say Media Inc, <cpan@saymedia.com>
52
53       This library is free software; you can redistribute it and/or modify it
54       under the same terms as Perl itself, either Perl version 5.8.6 or, at
55       your option, any later version of Perl 5 you may have available.
56
57
58
59perl v5.32.0                      2020-07-27     Perlbal::Plugin::XFFExtras(3)
Impressum