Plack middleware to support reverse proxy
