From b8b583d0c4f1ae13e0865c6083886a3565e18f03 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Wed, 6 Nov 2002 01:55:15 +0000 Subject: [PATCH] The value emitted by ServerSignature now mimics the Server HTTP header as controlled by ServerTokens. Submitted by: Francis Daly Reviewed by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97416 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ docs/manual/mod/core.html.en | 6 ++++++ docs/manual/mod/core.xml | 6 ++++++ server/core.c | 5 +++-- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 022b7e0cdb..c32a70967e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.44 + *) The value emitted by ServerSignature now mimics the Server HTTP + header as controlled by ServerTokens. [Francis Daly ] + *) Gracefully handly retry situations in the SSL input filter, by following the SSL libraries' retry semantics. [William Rowe] diff --git a/docs/manual/mod/core.html.en b/docs/manual/mod/core.html.en index 43e25705fe..0e44e9065f 100644 --- a/docs/manual/mod/core.html.en +++ b/docs/manual/mod/core.html.en @@ -2163,6 +2163,9 @@ is accessed by an incompatible browserServerAdmin of the referenced document.

+ +

After version 2.0.44, the details of the server version number + presented are controlled by the ServerTokens directive.

See also

top

ServerTokens Directive

Description: Configures the Server HTTP response header
Syntax: ServerTokens Major|Minor|Minimal|ProductOnly|OS|Full
Default: @@ -2209,6 +2212,9 @@ is accessed by an incompatible browser
ServerSignature
top

SetHandler Directive

Description: Forces all matching files to be processed by a handler
Syntax: diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml index b9cec21984..87a8b6e8c3 100644 --- a/docs/manual/mod/core.xml +++ b/docs/manual/mod/core.xml @@ -2509,6 +2509,9 @@ is accessed by an incompatible browser "mailto:" reference to the ServerAdmin of the referenced document.

+ +

After version 2.0.44, the details of the server version number + presented are controlled by the ServerTokens directive.

ServerTokens @@ -2560,6 +2563,9 @@ is accessed by an incompatible browser

This setting applies to the entire server, and cannot be enabled or disabled on a virtualhost-by-virtualhost basis.

+ +

After version 2.0.44, this directive also controls the + information presented by the ServerSignature directive.

ServerSignature diff --git a/server/core.c b/server/core.c index b28b7cf40b..a59e7d6a1f 100644 --- a/server/core.c +++ b/server/core.c @@ -2265,7 +2265,8 @@ AP_DECLARE(const char *) ap_psignature(const char *prefix, request_rec *r) apr_snprintf(sport, sizeof sport, "%u", (unsigned) ap_get_server_port(r)); if (conf->server_signature == srv_sig_withmail) { - return apr_pstrcat(r->pool, prefix, "
" AP_SERVER_BASEVERSION + return apr_pstrcat(r->pool, prefix, "
", + ap_get_server_version(), " Server at server->server_admin, "\">", ap_escape_html(r->pool, ap_get_server_name(r)), @@ -2273,7 +2274,7 @@ AP_DECLARE(const char *) ap_psignature(const char *prefix, request_rec *r) "
\n", NULL); } - return apr_pstrcat(r->pool, prefix, "
" AP_SERVER_BASEVERSION + return apr_pstrcat(r->pool, prefix, "
", ap_get_server_version(), " Server at ", ap_escape_html(r->pool, ap_get_server_name(r)), " Port ", sport, -- 2.50.1