if( variable exists )

hhtjim nginx-forum at forum.nginx.org
Wed Sep 5 06:39:26 UTC 2018


$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



More information about the nginx mailing list