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 <[email protected]> wrote: > > 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 > [email protected] > http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
