Hello all,
I found a problem when using try_files, it seems a tiny bug here.
Configuration section:
[code]
location / {
root /home/tee/abc.com;
try_files $uri /t.php;
}
[/code]
other configuration sections like fastcgi settings are omitted. In t.php file, I have some lines of code there:
[code]
<?php
var_dump($_GET['q']);
print_r($_SERVER);
[/code]
Now we will try to visit the site http://abc.com/search/?q=test
$_SERVER['QUERY_STRING'] should be [u]q=test[/u] and $_GET['q'] should be [u]test[/u] as usual.
BUT, we will see $_SERVER['QUERY_STRING'] and $_GET['q'] are both empty here.
Is it a bug or configuration error?