Plack::...rseProxy(3)
π Plack::Middleware::ReverseProxy β the manual page, bestie edition π
okay so real talk, this is the manual for Plack::Middleware::ReverseProxy, and it lives in section 3 of the User Contributed Perl Documentation (iykyk, that's the perl manpage collection). It's giving very "small module, big responsibilities" energy and honestly? we're obsessed. π«Ά
β¨ NAME β¨
Plack::Middleware::ReverseProxy β bestie, this one supports an app to run as a reverse proxy backend. that's literally the whole job. no notes. π
πΈ SYNOPSIS πΈ
builder {
enable_if { $_[0]->{REMOTE_ADDR} eq '127.0.0.1' }
"Plack::Middleware::ReverseProxy";
$app;
};
see how cute that is? that's the whole setup, she's lowkey elegant π
π¦ DESCRIPTION π¦
So Plack::Middleware::ReverseProxy resets some HTTP headers that got changed by the reverse proxy. like, the proxy came in and rearranged the furniture and this middleware puts it back where it belongs. π§Ήβ¨
And here's the part where you get to be a little paranoid (affectionately): you can specify the reverse proxy address, and you can stop fake requests, by using the 'enable_if' directive up in your app.psgi. Yes bestie, the enable_if thing is your bouncer at the door. πͺπͺ no fake requests allowed, periodt.
π LICENSE π
This software is licensed under the same terms as Perl itself. iconic behavior, fr fr. π
π COPYRIGHT π
Copyright 2009-2019 Tatsuhiko Miyagawa</>, holding it down since 2009 ππ
π AUTHOR π
This module is originally written by Kazuhiro Osawa</> as HTTP::Engine::Middleware::ReverseProxy for HTTP::Engine. glow-up to Plack, we love to see it. π
and then the rest of the squad, all absolute legends:
- Nobuo Danjou</>
- Masahiro Nagano</>
- Tatsuhiko Miyagawa</>
π SEE ALSO π
go read these next, bestie, they're the extended universe:
HTTP::Engine::Middleware::ReverseProxyPlackPlack::MiddlewarePlack::Middleware::Conditional
π reminder that you do not want to be running this wide open for just anyone β the whole point of that enable_if directive is to specify the reverse proxy address and stop fake requests. do not skip the vibe check. π
perl v5.42.3 Β· 2026-10-18 β and that's the page, bestie! shipped with perl v5.42.3, dated 2026-10-18, and yes she slayed every single line of it. mwah π π bye!! πΈβ¨π¦
π¦ where this page comes from
- fedora 43: perl-Plack-Middleware-ReverseProxy 0.17-1.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- fedora 44: perl-Plack-Middleware-ReverseProxy 0.17-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms