perusio/piwik-nginx — Issue #6: piwik apps doesn't work
Author: geistteufel
Created: 2011-11-06 12:22:14+00:00
State: open

I have this setting :

http://stats.example.com/

so, it try this :

http://stats.example.com/?account...

and you conf say to redirect to index.php (without the query string)

here the fix :

instead of this :
## Try all locations and relay to index.php as a fallback.
location / {
try_files $uri /index.php;
}

we need this :

## Try all locations and relay to index.php as a fallback.
location / {
try_files $uri /index.php?$query_string;
}