Problems with scripts Webserver, Webserv and Rebweb.
[1/5] from: mdb:gci at: 10-Aug-2000 14:45
Hello,
I've downloaded the scripts from rebol.org and the script library and i'm
not getting them all to work?
None of them work with the simple CGI script from Elan's book.
#!d:/rebol/rebol.exe -csi
REBOL[]
print { Content-Type: text/html^/^/
Welcome to my first REBOL CGI Script.}
I have got the script to work with Apache and PWS (here i had to take out
the first line).
Also Webserv won't display even an html document.
Any ideas??
Mike.
[2/5] from: carl:rebol at: 10-Aug-2000 17:53
Download the new networking chapter on REBOL.com. It has a list of the common gotchas
with CGI.... permissions, line breaks, etc. etc.
At 8/10/00 02:45 PM -0800, you wrote:
[3/5] from: tim:johnsons-web at: 10-Aug-2000 16:59
Are you using windows? (I presume from the path syntax on
the first line)
If so, to use PWS, you need to do the following:
Add a new string value to:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3Svc\Parameters\Scri
pt
Map with name of .r (assuming this is the suffix for the rebol script)
and data
value of
c:\rebol\rebol.exe -cs %s
(obviously substitute the appropriate path to your executable).
Your rebol cgi scripts should reside in your PWS Scripts directory.
In my case, I run from /cgi-bin.
tim
At 02:45 PM 8/10/00 -0800, you wrote:
[4/5] from: mdb:gci at: 10-Aug-2000 20:15
Tim.
Thanks to the information you posted sometime ago, i have already managed
to get the script to work using PWS. It's my understanding that these
scripts are web servers that take the place of APache and PWS.
Mike.
[5/5] from: tim:johnsons-web at: 10-Aug-2000 21:06
Hi Mike:
At 08:15 PM 8/10/00 -0800, you wrote:
>Tim.
>
>Thanks to the information you posted sometime ago, i have already managed
>to get the script to work using PWS. It's my understanding that these
>scripts are web servers that take the place of APache and PWS.
I don't think so, but I believe that there maybe two scripts in rebol that
do provided http.
If you go to http://www.rebol.com/library/script-tcp.html
the very first example should be a tiny web server.
I also believe, (but didn't follow) that there was a pretty
good thread going involving that. You could check it out
and maybe post the topic (rebol webserver). Probably are
a number of authorities to speak about it.
-Tim