From 3875a4f0e3e6fdb9a00a1e919810cf3aa0e0b402 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 21 Sep 2018 16:16:59 +0300 Subject: [PATCH] Typo --- .../patch_apache_disable_additional_errormsg | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 patches/patch_apache_disable_additional_errormsg diff --git a/patches/patch_apache_disable_additional_errormsg b/patches/patch_apache_disable_additional_errormsg deleted file mode 100644 index c865653..0000000 --- a/patches/patch_apache_disable_additional_errormsg +++ /dev/null @@ -1,23 +0,0 @@ -Author: Pekka Helenius (~Fincer), 2018 - -Patch: Remove additional error string from Apache server HTTP-based HTML output message. Especially, do not give any clear hints about existence of Apache ErrorDocument parameter to the client. - -This patch is useful for obfuscating server identity to a client but can bury underneath problems in server configuration and thus hamper debugging of errors which are based on HTTP return codes. Thus, use discretion before implementing the patch in your Apache server configuration. - ---- a/modules/http/http_protocol.c -+++ b/modules/http/http_protocol.c -@@ -1542,12 +1542,12 @@ AP_DECLARE(void) ap_send_error_response( - get_canned_error_string(status, r, location), - NULL); - -- if (recursive_error) { -+ /*if (recursive_error) { - ap_rvputs_proto_in_ascii(r, "

Additionally, a ", - status_lines[ap_index_of_response(recursive_error)], - "\nerror was encountered while trying to use an " - "ErrorDocument to handle the request.

\n", NULL); -- } -+ }*/ - ap_rvputs_proto_in_ascii(r, ap_psignature("
\n", r), NULL); - ap_rvputs_proto_in_ascii(r, "\n", NULL); - }