Welcome! Log In Create A New Profile

Advanced

set $var /location $arg -- set variable by location output

Posted by gklau 
set $var /location $arg -- set variable by location output
March 30, 2010 11:15PM
i want to get a value from memc/redis/dynamicHtmlFile, then compare it in ' if ' directive, in order to rewrite to somewhere else.
So, is it possible to

set $var /anyLocation $someArgus

that means to set the value of a variable with the responseBody (without the headers) of a location.

it makes the awesome nginx more powerful.

thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
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