Welcome! Log In Create A New Profile

Advanced

How to set $ into a variable?

November 17, 2011 10:06PM
nginx.conf:
location / {
....
set $var "$uri=200k"
....

and run "curl localhost/"

The module use ngx_http_get_indexed_variable() for $var will get the string "/=200k", but I want the value is "$uri=200k".

So any escape character supported in nginx.conf?

THANKS.

--
Best Regard.
Subject Author Posted

How to set $ into a variable?

bigplum November 17, 2011 10:06PM

Re: How to set $ into a variable?

magicbear November 18, 2011 09:00AM

Re: How to set $ into a variable?

Maxim Dounin November 18, 2011 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready