Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How dose nginx get the value of $http_upgrade

Tags:

http

nginx

In this nginx doc, a variable $http_upgrade is used in nginx conf file, while this variable is not found in ngnix var index, so it's probably not a built-in variable, then how nginx know its value.

like image 912
biao Avatar asked Sep 12 '19 02:09

biao


1 Answers

The $http_upgrade use the value from client header upgrade, in nginx conf, $http_HEADER get the HEADER from client.

like image 112
amchii Avatar answered Nov 09 '22 03:11

amchii