Re: Underscore between variables

2014-09-26 Thread Francis Daly
On Fri, Sep 26, 2014 at 09:43:59AM -0400, jamel wrote: Hi there, > location /path { > rewrite ^ /path/file_$arg_x_$arg_y_$arg_z.txt break; > root /var/www; > } > > But it is not working. Because nginx tries to use variables x_, y_. Does it? Or does it try to use variables arg_x_ and a

Underscore between variables

2014-09-26 Thread jamel
Hello, I'm trying to rewrite URL with parameters x, y, z to filename by such template: file_{x}_{y}_{z}.txt location /path { rewrite ^ /path/file_$arg_x_$arg_y_$arg_z.txt break; root /var/www; } But it is not working. Because nginx tries to use variables x_, y_. How can I use undersco