You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Ralf S. Engelschall" <rs...@engelschall.com> on 1999/01/28 11:54:25 UTC

version stuff in Host header and mod_perl!?

I've currently observed that mod_perl's version id is put
_before_ Apache's id in the Host header:

Server: mod_perl/1.18 Apache/1.3.4 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.1c DAV/0.9.5

Doug, is this a bug in mod_perl or in our version stuff of Apache?

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Re: version stuff in Host header and mod_perl!?

Posted by Doug MacEachern <do...@pobox.com>.
At 11:54 AM 1/28/99 +0100, Ralf S. Engelschall wrote:
>
>I've currently observed that mod_perl's version id is put
>_before_ Apache's id in the Host header:
>
>Server: mod_perl/1.18 Apache/1.3.4 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.1c
DAV/0.9.5
>
>Doug, is this a bug in mod_perl or in our version stuff of Apache?

on second thought it is a mod_perl bug, but only uncovered w/ dso, fixed
now in the cvs tree.

-Doug


Re: version stuff in Host header and mod_perl!?

Posted by Doug MacEachern <do...@pobox.com>.
At 11:54 AM 1/28/99 +0100, Ralf S. Engelschall wrote:
>
>I've currently observed that mod_perl's version id is put
>_before_ Apache's id in the Host header:
>
>Server: mod_perl/1.18 Apache/1.3.4 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.1c
DAV/0.9.5
>
>Doug, is this a bug in mod_perl or in our version stuff of Apache?

uuh, on third thought... ap_add_version_component is only called here if
mod_perl/x.xx is not already part of the version string and the first 7
characters of the version string are "Apache/"

    const char *ap_v = ap_get_server_version();

#if MODULE_MAGIC_NUMBER >= 19980507
    if (!strstr(ap_v, MOD_PERL_STRING_VERSION) && strnEQ(ap_v,"Apache/",7)) {
        ap_add_version_component(MOD_PERL_STRING_VERSION);
     }
#endif

however, mod_perl/x.xx still ends up before Apache/x.x.x in the Server: header
any diagnosis, Dr. Cosmetics? ;)

-Doug


Re: version stuff in Host header and mod_perl!?

Posted by Doug MacEachern <do...@pobox.com>.
At 11:54 AM 1/28/99 +0100, Ralf S. Engelschall wrote:
>
>I've currently observed that mod_perl's version id is put
>_before_ Apache's id in the Host header:
>
>Server: mod_perl/1.18 Apache/1.3.4 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.1c
DAV/0.9.5
>
>Doug, is this a bug in mod_perl or in our version stuff of Apache?

you're running mod_perl as a dso, yes?  the problem is worse, you'll see in
mod_perl.c there is a check of ap_get_server_version() so
ap_add_version_component() is not called if mod_perl is already part of the
version string.  this only happens with dso, no idea why, but I assume bug
in Apache, since a module's init() function should be able to call
ap_add_version_component() without keeping track of some ugly counter, yes?
is your mod_ssl running as dso too?  if it doesn't have the problem, I
guess its a mod_perl bug, but cant image why.

-Doug