Re: if( variable exists )

2018-09-05 Thread hhtjim
$arg_proxy ?aaa.com?proxy ``` if ($args ~ '(&|^)proxy([&=]|$)' ) { #exists set $port '8080'; } ``` Posted at Nginx Forum: https://forum.nginx.org/read.php?2,224860,281102#msg-281102 ___ nginx mailing list nginx@nginx.org

Re: if( variable exists )

2018-05-17 Thread foxman
if ($arg_user) { do as $arg_user exist bla bla bbla } if ($arg_user !~ $arg_user) { do as $arg_user not exist } Posted at Nginx Forum: https://forum.nginx.org/read.php?2,224860,279847#msg-279847 ___ nginx mailing list nginx@nginx.org