Welcome! Log In Create A New Profile

Advanced

if( variable exists )

April 03, 2012 08:35AM
Hello,

Is there a chance to test if a "$arg_variable" (empty value) exists?
The problem: "if" condition returns "false".

URL:
http://example.com/?variable

nginx.conf:
location / {
if( $arg_variable ) {
rewrite ^.*$ /other-location;
}
}

Thanks a lot
Marcus
Subject Author Posted

if( variable exists )

double April 03, 2012 08:35AM

Re: if( variable exists )

Valentin V. Bartenev April 03, 2012 12:58PM

Re: if( variable exists )

foxman May 17, 2018 05:46PM

Re: if( variable exists )

hhtjim September 05, 2018 02:39AM



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