try_files internal redirect stripping QUERY_STRING?

Edho P Arief edhoprima at gmail.com
Fri Nov 13 13:32:46 MSK 2009


On Fri, Nov 13, 2009 at 1:28 PM, Jeff Waugh <jdub at bethesignal.org> wrote:
> <quote who="Edho P Arief">
>
>> On Fri, Nov 13, 2009 at 11:32 AM, Jeff Waugh <jdub at bethesignal.org> wrote:
>> > If it's not in QUERY_STRING, it won't make it into PHP's $_GET.
>>
>> oh right it isn't.
>>
>> make it
>>
>> try_files $uri $uri/ /index.php?$args;
>
> Right... thanks, that works, but it feels unbelievably dirty. :-) Wondering
> if Igor regards this as intentional behaviour or not...
>
> - Jeff
>
> --
> linux.conf.au 2010: Wellington, NZ                http://www.lca2010.org.nz/
>
>     "Do they speak English in 'What'?" - Jules Winnfield, Pulp Fiction
>
>

I believe since it's usually used for parsing REQUEST_URI (clean urls,
etc), I don't think it's intended to pass QUERY_STRING at all.

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org





More information about the nginx mailing list