Search code examples
apachemod-wsgiwsgi

How to get the version of wsgi_mod which apache used?


I am using ubuntu 12.041 and installed apache through apt-get.

I don't know what version of mod_wsgi i am using albeit I google about it. All I found is you can use apachctl to restart you apache and you would get something like "Apache/2.2.2 (Unix) mod_wsgi/1.0 Python/2.3 configured". But this's not happened to me.

Is there any way to know what version I am using ? Thanks.


Solution

  • In your WSGI application look at the value of mod_wsgi.version in the WSGI environ dictionary. That or import mod_wsgi module in a WSGI application running under mod_wsgi (not command line Python) and print out mod_wsgi.version from that module.