+Changes with Apache 2.0.48
+
+ *) Don't respect the Server header field as set by modules and CGIs.
+ As with 1.3, for proxy requests any such field is from the origin
+ server; otherwise it will have our server info as controlled by
+ the ServerTokens directive. [Jeff Trawick]
+
Changes with Apache 2.0.47
*) Prevent the server from crashing when entering infinite loops. The
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2003/07/05 01:28:11 $]
+Last modified at [$Date: 2003/07/07 19:11:34 $]
Release:
build/.cvsignore 1.4
+1: trawick, jerenkrantz
- * Ignore the Server header field as set by modules and CGIs.
- modules/http/http_protocol.c 1.470
- jerenkrantz: When it is a proxy response that doesn't have server
- string set, we shouldn't place one there. Correct?
- trawick: rfc2616/14.38: "The Server response-header field contains
- information about the software used by the origin server
- to handle the request." ... "If the response is being
- forwarded through a proxy, the proxy application MUST NOT
- modify the Server response-header."
- I don't see any wiggle room for us to be adding one if
- the origin server didn't include it.
- BTW, with my patch Apache 2 and Apache 1.3 will behave
- identically. (That's how I read the code, anyway :) )
- +1: trawick, nd, jerenkrantz
-
* mod_rewrite: Perform child initialization on the rewrite log
lock. This fixes a log corruption issue when flock-based
serialization is used (e.g., FreeBSD).
h.bb = bb;
form_header_field(&h, "Date", date);
- /* keep a previously set server header (possibly from proxy), otherwise
+ /* keep the set-by-proxy server header, otherwise
* generate a new server header */
- if ((server = apr_table_get(r->headers_out, "Server")) != NULL) {
- form_header_field(&h, "Server", server);
+ if (r->proxyreq != PROXYREQ_NONE) {
+ server = apr_table_get(r->headers_out, "Server");
+ if (server) {
+ form_header_field(&h, "Server", server);
+ }
}
else {
form_header_field(&h, "Server", ap_get_server_version());