Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

CGI applications on the Macintosh

 [1/3] from: pr1:club-internet at: 23-Aug-2000 13:20


How do you make REBOL automatically run rebol scripts as CGI, on the Macintosh? If you try to launch a script by typing something like http://127.0.0.1/cgi-bin/my-cgi.r in your browser, the web server treats my-cgi.r as a text file, not as a CGI script. Many thanks. Philippe de Rochambeau

 [2/3] from: petr:krenzelok:trz:cz at: 23-Aug-2000 14:12


[pr1--club-internet--fr] wrote:
> How do you make REBOL automatically run rebol scripts as CGI, on the > Macintosh? > > If you try to launch a script by typing something like > "http://127.0.0.1/cgi-bin/my-cgi.r" in your browser, the web server > treats my-cgi.r as a text file, not as a CGI script.
what kind of web server are you running? In my apache web server config, there's the definition stating which suffix CGI script is allowed to have. Default is .cgi. So try to change your .r to .cgi first. CGI scripts on unix require also some #!/path/to/your/rebol.exe/on/your/server/rebol.exe --cgi as a first line ... There's also new chapter called Networking on REBOL.com website ... -pekr-

 [3/3] from: pr1::club-internet::fr at: 23-Aug-2000 15:18


I am using WebStar. It seems that the REBOL interpreter for Mac will only output data to its own console. Furthermore, it is not AppleEvent compatible (that is how applications communicate on the Macintosh). Philippe de Rochambeau [Petr--Krenzelok--trz--cz] a *crit :