map configuration

Michael Salmon michael.salmon at ericsson.com
Tue Jul 4 14:50:37 UTC 2017


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 <finid at vivaldi.net> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list