TE_ADDR in path_info

Igor Sysoev is at rambler-co.ru
Sun Sep 7 12:48:11 MSD 2008


On Sun, Sep 07, 2008 at 10:42:48AM +0200, remo.laubacher at ortic.com wrote:

> >> I'm using this code to set PATH_INFO:
> >>
> >> set  $script     $uri;
> >> set  $path_info  "";
> >>
> >> if ($uri ~ "^(.+\.php)(/.+)") {
> >> 	set  $script     $1;
> >>       set  $path_info  $2;
> >> }
> >>
> >> Mostly this works fine but in some cases $_SERVER['PATH_INFO'] returns
> >> TE_ADDR.
> >> Any ideas?
> > 
> > Could you add $path_info variable to access_log format for this location
> > to see whether this is nginx or PHP bug ?
> > 
> 
> You're right, the variable contains the correct value in the log file!
> This is going to be nasty.. Will check if there's a problem with php 5.2.5.

If you can easy reproduce the bug, could run tcpdump to insure that
nginx pass correct PATH_INFO to backend.


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





More information about the nginx mailing list