python cgi + IIS

Axel Grune NineOfSix at gmx.de
Tue Jun 18 07:22:59 EDT 2002


Hi, I'm trying to get my IIS (Win2k Pro) execute my python scripts.
I added the 'App Mapping' info for '.pycgi' files in the properties of 
IISAdmin (Computermanagement) as I read in the internet. The string
for the executable file is 'D:\Python22\python.exe -u %s %s' (the path 
is valid).
But when i try to call it within my browser, it just displays it like a 
normal text file instead of executing it.


the script (its called test.pycgi):
#!/usr/bin/python

print "Content-Type: text/plain\n\n"
print "Hallo Welt"


has anyone an idea?

tia,
Axel




More information about the Python-list mailing list