Trecho de documentação do módulo de reescrita do nginx :
If in the line of replacement arguments are indicated, then the rest of the request arguments are appended to them. To avoid having them appended, place a question mark as the last character:
rewrite ^/users/(.*)$ /show?user=$1? last;