[mod_python] Version strings (or Server signature)

Graham Dumpleton grahamd at dscpl.com.au
Tue Jan 23 17:22:36 EST 2007

Dirk van Oosterbosch, IR labs wrote ..
> Hi,
> I am constructing my own error pages, and would very much like to use 
> the same version string (ServerSignature) that Apache puts on the  
> bottom of its error pages ... like e.g. "Apache/2.0.55 (Unix)  
> mod_python/3.1.4 Python/2.4.1 Server at localhost Port 80"
> Is there any way I can access that signature (or the separate pieces  
> of information to build the string myself) from within mod_python code?

Haven't tested this, but try:

  version = req.subprocess_env["SERVER_SOFTWARE"]


More information about the Mod_python mailing list