How to configure CGI on IIS 7?

I did it

http://reboltutorial.com/images/rebol-iis.png

as explained here, but it was for IIS 6 http://rebolforum.com/index.cgi?f=printtopic&topicnumber=39&archiveflag=new

I also activated 32 bits for the application pool as described here http://blogs.iis.net/wadeh/archive/2009/04/13/running-perl-on-iis-7.aspx

But when viewing the test script, it does not work, it seems that nothing is displayed forever, and at the end an error message is displayed:

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.

I used a dedicated server in Windows 2008

Source code of the test script:

REBOL [Title: "Cgi Test in Rebol"]
print "HTTP/1.0 200 OK^/Content-type:text/html^/^/";
print []
print ["Date/time is:" now]
print []

Should I ask on serverfault how nobody seems to know here?

+3
source share
1

, , :

" " "". "- (IIS)" http://localhost/ . IIS7.

core.exe c:\( - ), core.exe "", " " IUSR_xxxx "". ( - , )

" IIS" " ".

"- ", " ", " " :

Request Path: *.r 
Module: c:\core.exe -cs %s %s 
Name: Rebol 

"", " Script ". c:\core.exe -cs "% s% s", ISAPI CGI Restrictions.

test.r wwwroot. test.r script:

 R E B O L [Title: "Server Time"] 
 print "content-type: text/html^/" 
 print [<HTML><BODY>] 
 print ["Date/time is:" now] 
 print [</pre></BODY></HTML>] 

http://localhost/test.r . , .

View.exe, --noinstall , , View IUSR_xxx, ( Task ).

 c:\view.exe -csi %s %s 

% s, Script . :

 c:\core.exe -cs "%s %s" 

:

 c:\core.exe "-cs %s %s" (<-- this won't work!)

, .

UPDATE: IIS6 (Windows 2003 Server), 404, ( IIS7, ):

c:\core.exe -cs "%s %s"

:

c:\core.exe" -cs "%s" %s

Perl. http://www.howtogeek.com/50500/how-to-install-perl-on-iis-6-for-windows-server-2003/

+5

Source: https://habr.com/ru/post/1754108/


All Articles