Igor Sysoev
February 15, 2010 02:34PM
On Mon, Feb 15, 2010 at 08:00:20PM +0100, witekfl Gazeta.pl wrote:

> Hi,
> there is a small bug in nginx-0.8.33 in ngx_http_variables.c in line 497.
> Should be 14 there.
>
> I wrote an alternative mod_rewrite module for Apache, which in the response
> set header X-Accel-Redirect.
> I also set X-Path-Info there.
> In the nginx.conf I tried to set:
> fastcgi_param PATH_INFO $upstream_http_x_path_info; # but
> $upstream_http_x_path_info is empty. Why?
>
> How could I set PATH_INFO without patching nginx, to the value of the
> X-Path-Info header got from proxy?

Thank you for report. However, the issue is not related to this.
The problem is that all upstream variables are cleaned when
nginx initiates new upstream request. Thus you should save the
variable value in an usual varaible:

set $path_info $upstream_http_x_path_info;
fastcgi_param PATH_INFO $path_info;


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

upstream_http_

witekfl Gazeta.pl 3105 February 15, 2010 02:02PM

Re: upstream_http_

Igor Sysoev 1596 February 15, 2010 02:34PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 284
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready