$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