proxy_set_header in nginx

232 views
Skip to first unread message

Ash

unread,
Jul 21, 2010, 10:20:30 PM7/21/10
to Phusion Passenger Discussions
Before I dive into the code, does passenger pass through the headers
set by proxy_set_header to the Rails application?

Hongli Lai

unread,
Jul 23, 2010, 8:13:15 AM7/23/10
to phusion-...@googlegroups.com
On Thu, Jul 22, 2010 at 4:20 AM, Ash <ashle...@yahoo.com> wrote:
> Before I dive into the code, does passenger pass through the headers
> set by proxy_set_header to the Rails application?

Not at this time. But Passenger 3 will.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

langer8191

unread,
Jun 8, 2011, 1:46:04 AM6/8/11
to phusion-...@googlegroups.com
I've had some success using passenger_set_cgi_param

So instead of
proxy_set_header        X-Accel-Mapping /abc/=/xyz/;

Use
passenger_set_cgi_param HTTP_X_ACCEL_MAPPING /abc/=/xyz/;

Documentation is here:- http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_passenger_set_cgi_param_lt_cgi_environment_name_gt_lt_value_gt

Hope this helps.

Lang
--
http://thedataasylum.com/

Reply all
Reply to author
Forward
0 new messages