view src/os/win32/nginx_icon32.xpm @ 5094:e0a3714a36f8

SNI: reset to default server if requested host was not found. Not only this is consistent with a case without SNI, but this also prevents abusing configurations that assume that the $host variable is limited to one of the configured names for a server. An example of potentially unsafe configuration: server { listen 443 ssl default_server; ... } server { listen 443; server_name example.com; location / { proxy_pass http://$host; } } Note: it is possible to negotiate "example.com" by SNI, and to request arbitrary host name that does not exist in the configuration above.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 27 Feb 2013 17:38:54 +0000
parents 7e24168b0853
children
line wrap: on
line source

/* XPM */
static char * nginx_xpm[] = {
"32 32 2 2",
/* colors */
"   c none",
"GG c #009900",
/* pixels */
"                                                                ",
"                                                                ",
"                                                                ",
"                                                                ",
"                  GGGGGGGGGGGGGGGGGGGGGGGGGGGG                  ",
"                GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG                ",
"                GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG                ",
"              GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG              ",
"              GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG              ",
"            GGGGGGGGGG                    GGGGGGGGGG            ",
"            GGGGGGGGGG                    GGGGGGGGGG            ",
"          GGGGGGGGGG                        GGGGGGGGGG          ",
"          GGGGGGGGGG                        GGGGGGGGGG          ",
"        GGGGGGGGGG                                              ",
"        GGGGGGGGGG                                              ",
"      GGGGGGGGGG            GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG      ",
"      GGGGGGGGGG          GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG      ",
"        GGGGGGGGGG        GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG        ",
"        GGGGGGGGGG        GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG        ",
"          GGGGGGGGGG        GGGGGGGGGGGGGGGGGGGGGGGGGG          ",
"          GGGGGGGGGG                        GGGGGGGGGG          ",
"            GGGGGGGGGG                    GGGGGGGGGG            ",
"            GGGGGGGGGG                    GGGGGGGGGG            ",
"              GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG              ",
"              GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG              ",
"                GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG                ",
"                GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG                ",
"                  GGGGGGGGGGGGGGGGGGGGGGGGGGGG                  ",
"                                                                ",
"                                                                ",
"                                                                ",
"                                                                "