TE_ADDR in path_info

remo.laubacher at ortic.com remo.laubacher at ortic.com
Sun Sep 7 12:42:48 MSD 2008


Hi Igor,

>> 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.

Remo






More information about the nginx mailing list