that means, if the value of $http_upgrade is null or that variable doesn't exist, the value of $connection_upgrade will set to "close", or it will set to "upgrade" in the other cases. the $http_upgrade is the value of the "Upgrade" header in the client request. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275283,275304#msg-275304