summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7d185a)
raw | patch | inline | side by side (parent: c7d185a)
author | Manuel Luis SanmartĂn Rozada <manuel.luis@gmail.com> | |
Wed, 8 Sep 2010 09:01:23 +0000 (11:01 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 11 Sep 2010 09:35:30 +0000 (11:35 +0200) |
IBM HTTP Server is a version of apache 2 that comes with Websphere.
IBM change the server name header to:
Server: IBM_HTTP_Server
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
IBM change the server name header to:
Server: IBM_HTTP_Server
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/apache.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 3d6d957c5c2a721a3ce328fd19e27c2439e39a8c..80c66bff3056443b14fb11668925f4657a6d852d 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
st->server_type = APACHE;
else if (strstr (buf, "lighttpd") != NULL)
st->server_type = LIGHTTPD;
+ else if (strstr (buf, "IBM_HTTP_Server") != NULL)
+ st->server_type = APACHE;
else
{
const char *hdr = buf;
st->server_type = APACHE;
else if (strcasecmp(st->server, "lighttpd") == 0)
st->server_type = LIGHTTPD;
+ else if (strcasecmp(st->server, "ibm_http_server") == 0)
+ st->server_type = APACHE;
else
WARNING ("apache plugin: Unknown `Server' setting: %s",
st->server);