I'm considering running a tiny Python webapp that comes as an implementation of a BaseHTTPRequestHandler
(i.e. https://github.com/openid/python-openid/blob/master/examples/server.py).
I want to use an existing WSGI server, i.e. Apache with mod_wsgi.
So my question is: How to conveniently serve the BaseHTTPRequestHandler
via WSGI so that I can hook it up with Apache + mod_wsgi?
Don't try, it would likely be one huge hack even if you tried and could somehow get it to work.
Try and find a version of your application which already works on a WSGI server.
If you need a very small WSGI server which only relies on stuff from the standard Python distribution then use the WSGI server from the wsgiref module.
If you need a simple to use WSGI framework, and try and port that application, use Flask.