aboutsummaryrefslogtreecommitdiff
path: root/src/mysql/ngx_mysql.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-02-27 17:38:54 +0000
committerValentin Bartenev <vbart@nginx.com>2013-02-27 17:38:54 +0000
commit6000f4ad6d1e5ea69b3e0925217d08401a3d1774 (patch)
tree36a96b5002438cb52da3a736362c0f8accbaa3e7 /src/mysql/ngx_mysql.c
parentf61612532cb53e89cd6b27d24c9112a07021b6e3 (diff)
downloadnginx-6000f4ad6d1e5ea69b3e0925217d08401a3d1774.tar.gz
nginx-6000f4ad6d1e5ea69b3e0925217d08401a3d1774.zip
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.
Diffstat (limited to 'src/mysql/ngx_mysql.c')
0 files changed, 0 insertions, 0 deletions