How do I configure Plack to convert the contents of a request header to an environment variable

24 views
Skip to first unread message

Robert Rothenberg

unread,
Mar 22, 2013, 3:15:44 PM3/22/13
to psgi-...@googlegroups.com
I am working on a Catalyst application that is accessed through a reverse proxy.  The proxy passes X-Proxy-REMOTE_USER header to the application. Is there a way to get Plack to take pass the content of the header to the REMOTE_USER environment variable in the Catalyst application?

Ævar Arnfjörð Bjarmason

unread,
Mar 22, 2013, 4:38:20 PM3/22/13
to psgi-...@googlegroups.com

Write a middleware to munge $env before the app gets to it.

Reply all
Reply to author
Forward
0 new messages