modified the Nginx config and removed uselesss lines

The main change is the added `?$query_string` which also fixes issues with urls like `example.org/search?q=foo`.