Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - English
> Topic
Advanced
if( variable exists )
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
double
April 03, 2012 08:35AM
Registered: 14 years ago
Posts: 48
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
Reply
Quote
RSS
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: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018