args and rewrite vars always empty

Patrick 201904-nginx at
Fri May 24 08:41:18 UTC 2019

On 2019-05-24 08:27, User via nginx wrote:
> I'm trying to make simple rewrite to work and found that $args and other
> $1 vars from rewrite&try_files are always empty.
>   location /product/ {
>     rewrite ^/product/(.*)/$ /$1.txt last;
>   }

Use 'break' instead of 'last' as per


More information about the nginx mailing list