ReverseProxy is the common way to run Perl applications,
so enable it by default and don't care too much about fake
requests because we don't handle any sensitive information
or rely on authentication (everything is read-only from
the WWW interface and will remain so).
# properly when running behind a reverse proxy server which
# sets X-Forwarded-For and X-Forwarded-Proto request headers.
# See Plack::Middleware::ReverseProxy documentation for details
- # enable 'ReverseProxy';
+ enable 'ReverseProxy';
+
enable 'Head';
sub { $www->call(@_) };
}
enable 'Deflater',
content_type => $deflate_types
}
+ enable 'ReverseProxy';
enable 'Head';
sub { $www->call(@_) };
};