title: How to configure CGI on IIS 7?
body: <p>I did this</p>
  
  <p><a href="http://reboltutorial.com/images/rebol-iis.png" rel="nofollow noreferrer">http://reboltutorial.com/images/rebol-iis.png</a></p>
  
  <p>as explained here but it was for IIS 6
  <a href="http://rebolforum.com/index.cgi?f=printtopic&amp;topicnumber=39&amp;archiveflag=new" rel="nofollow noreferrer">http://rebolforum.com/index.cgi?f=printtopic&amp;topicnumber=39&amp;archiveflag=new</a></p>
  
  <p>I also activated 32 bits for application pool as explained here 
  <a href="http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx" rel="nofollow noreferrer">http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx</a></p>
  
  <p>But when browsing to the test script it doesn't work, seems to take forever showing nothing, then in the end shows this message error:</p>
  
  <pre><code>502 - Web server received an invalid response while acting as a gateway or proxy server.
  There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
  </code></pre>
  
  <p>I used a dedicated server on windows 2008</p>
  
  <p>Source code of the test script:</p>
  
  <pre><code>REBOL [Title: "Cgi Test in Rebol"]
  print "HTTP/1.0 200 OK^/Content-type:text/html^/^/";
  print []
  print ["Date/time is:" now]
  print []
  </code></pre>
  
  <p>Should I ask on serverfault rather as nobody seems to know here ?</p>