Re: map configuration

2017-07-04 Thread foxgab
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://for

Re: map configuration

2017-07-04 Thread foxgab
why no just pass the $http_upgrade and $http_connection headers to the backend? like conf bellow: proxy_set_header Upgrade $http_upgrade proxy_set_header Connection $http_Connection and if i set the Connection header to "upgrade" permanently, does it make any harm? Posted at Nginx Forum: https:/

Re: map configuration

2017-07-04 Thread Michael Salmon
The map is similar to $connection_upgrade = ($http_upgrade == '') ? 'close' : 'upgrade'; Each line in a map is a match and a value with default being used if nothing matches. /Michael Salmon SE KI73 03 366 (OLC: 9FFVCX53+C5Q8) +46 722 184 909 > On 4 Jul 2017, at 16:37:37, Dan Edwards wrote: >

map configuration

2017-07-04 Thread Dan Edwards
Hello: Need help understanding this piece of Nginx configuration: === map $http_upgrade $connection_upgrade { default upgrade; '' close; } === What does the last line mean? TIA, -- -Dan Edwards- ___ nginx mailing list nginx@nginx.org htt