Welcome! Log In Create A New Profile

Advanced

Re: map configuration

Michael Salmon
July 04, 2017 10:52AM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

map configuration

Dan Edwards July 04, 2017 10:38AM

Re: map configuration

Michael Salmon July 04, 2017 10:52AM

Re: map configuration

foxgab July 05, 2017 01:48AM

Re: map configuration

foxgab July 05, 2017 01:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 244
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready