Apache2::Banner - a patch for Apache2::ServerUtil
use Apache2::Banner (); $banner=Apache2::Banner::banner; $description=Apache2::Banner::description; $datestr=Apache2::Banner::date $time;
Apache2::Banner reimplements a few functions that Apache2::ServerUtil didn't get right at least up to mod_perl 2.0.5.
Future mod_perl versions may fix the problem.
Apache2::ServerUtil::get_server_banner should do the trick. But it calls the Apache API function only once when Apache2::ServerUtil is loaded. That is not correct because the module may be loaded very early, for example in a <Perl> container in the httpd.conf. Modules may register components later. Hence, the Apache2::ServerUtil notion of the banner is wrong.
The server banner is influenced by the ServerTokens directive.
The same here, Apache2::ServerUtil::get_server_banner should do it but doesn't.
The server banner is not influenced by the ServerTokens directive.
With ServerTokens Full banner and description are equal.
returns $datestr exactly the same way as the HTTP Date header would be formatted.
None.
Torsten Förtsch, <torsten.foertsch@gmx.net>
Copyright (C) 2011 by Torsten Förtsch
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.12.3 or, at your option, any later version of Perl 5 you may have available.