Python + Windows + Webserver

Gerson Kurz gerson.kurz at t-online.de
Sun Aug 12 07:30:41 EDT 2001


On Sat, 11 Aug 2001 20:03:39 +0200, "Chris Eidhof" <chris at eidhof.com>
wrote:

>Hello, I'm looking for a *simple* way to set up a webserver under win98, the
>webserver must handle python scripts. I've tried apache, but it didn't work.

A *simple* webserver in python : 

---- snip begin ----
from SimpleHTTPServer import *
test()
---- snip end ----

Its in your \python21\lib, hehe.

On the other hand: Apache works fine with python (at least on Windows
2000). Can you explain what didn't work ? If you've tried mod_python
(from www.modpython.org) you cannot easily bind "standard CGI" scripts
because mod_python has a different syntax (you're dealing
with apache requests etc.)



More information about the Python-list mailing list