2009/9/21 xerophyte <[email protected]>:
>
> Could anybody let me know how can i  find out which version of
> mod_wsgi. I  am with my apache
>
> Try to inspect the apache signature, didn't get any info about the
> mod_wsgi
>
> HTTP/1.1 200 OK
> Date: Sun, 20 Sep 2009 23:39:47 GMT
> Server: Apache/2.2.3 (CentOS)
> Vary: Accept-Language,Cookie
> Content-Language: en
> Connection: close
> Transfer-Encoding: chunked
> Content-Type: text/html; charset=utf-8
>
>
>
> it would be nice if someone can tell me how ti get the version of
> current running mod_wsgi

See:

  
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Restart_Apache_Web_Server

In there it mentions how one can look for the Apache server startup
string indicated which modules have registered themselves to be output
in server string. For example:

  Apache/2.2.2 (Unix) mod_wsgi/1.0 Python/2.3 configured

The only problem might be that some Linux distributions have taken it
on themselves to hack the Apache source code to deliberately
obliterate that information on the basis that returning that
information to clients is an information security leak. By doing what
they do, it also doesn't show in the Apache error logs on startup
either.

The other option is to use a WSGI hello world application:

def application(environ, start_response):
    status = '200 OK'
    output = str(environ['mod_wsgi.version'])

    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)

    return [output]

This will display mod_wsgi version in page response.

The only problem with this is that in older versions of mod_wsgi I
kept forgetting to update version information that generated this. As
such, if you get '(1,0)', you could be using anything up to about
mod_wsgi 2.3 from memory. Either way, you should definitely upgrade if
that is what it reports as latest is 2.5 anyway.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to