Sunday, July 29, 2007 12:08 AM

I got a little bored over the weekend and decided to "play" "tinker" with mod_python. I wanted a path I could hit off of my URI that would emit my apache and mod_python version number (see code snippet below).

def index(req):
    return req.subprocess_env['SERVER_SOFTWARE']

Of course the output is:

Apache/2.2.4 (Unix) mod_python/3.3.1 Python/2.5