Hello,
Gor some new hardware, Windows Server 2008 with IIS 7; I have full admin access... but am new to IIS 7... :-)
I am trying to get Python running under IIS 7 so I can use TileCache:
When I try a simple test file "test.py" I get the error below (note that the file works under IIS 5.1 on my previous hardware - added at the end FYI though...)
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "".
Module CgiModule
Notification ExecuteRequestH andler
Handler Python
Error Code 0x00000000
Any pointers would be SINCERELY appreciated... thank you in advance...
Regards,
GREG...
----------------
test.py consists of
Gor some new hardware, Windows Server 2008 with IIS 7; I have full admin access... but am new to IIS 7... :-)
I am trying to get Python running under IIS 7 so I can use TileCache:
- Python version 3.0.1
- used the guide at http://forums.iis.net/t/1122937.aspx
When I try a simple test file "test.py" I get the error below (note that the file works under IIS 5.1 on my previous hardware - added at the end FYI though...)
HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "".
Module CgiModule
Notification ExecuteRequestH andler
Handler Python
Error Code 0x00000000
Any pointers would be SINCERELY appreciated... thank you in advance...
Regards,
GREG...
----------------
test.py consists of
Code:
print 'Content-type: text/html' print print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"' print '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' print '<html xmlns="http://www.w3.org/1999/xhtml">' print print '<HEAD><TITLE>Python Sample CGI</TITLE></HEAD>' print '<BODY>' print '<H2>Here is a web page generated by a Python file/script</H1>' print print '<h3 style="color:red">' #this is a comment print 'See this is just like most other HTML' print '</h3>' print '</BODY>'