]> granicus.if.org Git - apache/commitdiff
Set an error note for requests rejected due to SSLStrictSNIVHostCheck.
authorJeff Trawick <trawick@apache.org>
Sat, 12 Jul 2014 14:48:04 +0000 (14:48 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 12 Jul 2014 14:48:04 +0000 (14:48 +0000)
This allows custom error documents to include the specific reason
for denying access to the server.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1609936 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/ssl/ssl_engine_kernel.c

diff --git a/CHANGES b/CHANGES
index 9f4c6ecf948c49ce67781728168e8395533d578e..70843df14deaed9cdc6344e40caf68203f73ccc4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_ssl: Set an error note for requests rejected due to
+     SSLStrictSNIVHostCheck.  [Jeff Trawick]
+
   *) mod_ssl: Fix issue with redirects to error documents when handling
      SNI errors.  [Jeff Trawick]
 
index ea1298a5b8fc0c3e0028ef29ad10c18c0a47d442..a14e6afe3e798708117b75b55ddcac54d046004f 100644 (file)
@@ -220,6 +220,10 @@ int ssl_hook_ReadReq(request_rec *r)
             ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, APLOGNO(02033)
                          "No hostname was provided via SNI for a name based"
                          " virtual host");
+            apr_table_setn(r->notes, "error-notes",
+                           "Reason: The client software did not provide a "
+                           "hostname using Server Name Indication (SNI), "
+                           "which is required to access this server.<br />\n");
             return HTTP_FORBIDDEN;
         }
     }