setup server from scratch (with or without apache?)

Paul Rubin no.email at nospam.invalid
Mon Jun 21 02:03:55 EDT 2010


News123 <news1234 at free.fr> writes:
> 1.) What alternatives would exist compared to apache / mod_python

I think you could use stunnel to listen on port 443 and forward it to a
local port, where you'd have a python httpd, perhaps using the
SimpleHTTPServer module.  Stunnel uses OpenSSL which handles client
certificates pretty well as far as I can tell.  There are various Python
openssl bindings that I haven't used and I get they impression that at
least some of them are sloppy about certificates at either end.

I've never used stunnel but have been wanting to.

mod_python is pretty dead.  Frankly I've always used apache whenever
I've used https for web pages.  You could use mod_wsgi (I haven't tried
this yet) or again, set it up as a proxy forwarding to a local port for
a python httpd to listen to.  Or for that matter, you use old-fashioned
cgi's.  That's what I usually do if there's not a load issue.



More information about the Python-list mailing list