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
Posted at Nginx Forum: