Plack::Middleware::ReverseProxy resets some HTTP headers, which were changed by reverse-proxy. You can specify the reverse proxy address and stop fake requests using the 'enable_if' directive in your app.psgi.WWW: https://metacpan.org/release/Plack-Middleware-ReverseProxy