Thanks to everyone who helped with the Apache setup.

It turns out it was my own fault. I had configured Apache to log in as
IUSR_APACHE and denied access to that user to the rest of the file system,
including the Rebol directory. Fixed the permissions and it works fine.

FWIW:

I did not need to uncomment the httpd.conf entry for "#AddHandler cgi-script
.cgi" since my script files are in the cgi-bin directory.

I did need to use the ".cgi" extension on my Rebol script files.

Both "#!e:/rebol/rebol.exe -cs" and "#! e:\rebol\rebol.exe" worked fine.

Thanks again!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 20, 2000 4:12 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Windows NT 4.0 / Apache / Rebol Configuration Re:(2)


Hello,

> On NT 4.0 in my CMD.EXE window, why does
>
>     e:\rebol\rebol.exe --cgi sample.r
>
> product no output, but
>
>     e:\rebol\rebol.exe --cgi sample.r | more
>
> produce the correct output? (My configurations etc are
> listed in the message below.)

When you run Rebol in --cgi mode, it is only supposed to produce output
to a webserver, never to the console! Otherwise if your CGI would be
working, it would open a rebol window everytime you ran a cgi script
(apache doesn't have its own console).

But is CGI running yet? Have you tried a script like this:

#!path/to/rebol.exe -cs

REBOL []

print "Content-Type: text/plain^/^/"
print "Just testing!"

Name this script test.cgi and place it in your /cgi-bin/ as defined in
your config. The association you made for Rebol only matters to your NT
system, NOT to Apache, if you would like to set Apache up for .r
execution (and I could never be bothered) you must add an AddHandler
command to your config. Put one below "AddHandler cgi-script .cgi" that
reads: "AddHandler cgi-script .r" and that should work (never tried it,
though)...

Good luck,
Rachid

Reply via email to