mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +03:00
* Do not allow name based virtual hosts in the case no hostname was
provided via SNI. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@757720 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -186,6 +186,16 @@ int ssl_hook_ReadReq(request_rec *r)
|
||||
return HTTP_BAD_REQUEST;
|
||||
}
|
||||
}
|
||||
else if (r->connection->vhost_lookup_data) {
|
||||
/*
|
||||
* We are using a name based configuration here, but no hostname was
|
||||
* provided via SNI. Don't allow that.
|
||||
*/
|
||||
ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
|
||||
"No hostname was provided via SNI for a name based"
|
||||
" virtual host");
|
||||
return HTTP_FORBIDDEN;
|
||||
}
|
||||
#endif
|
||||
SSL_set_app_data2(ssl, r);
|
||||
|
||||
|
Reference in New Issue
Block a user