[REBOL] Re: Rebol x Linux x Apache
From: SunandaDH:aol at: 21-Jul-2003 8:22
Marcello:
> Second, I want to use Rebol in an experience with Apache and Linux..
Welcome to the list!
Apache, Linux and REBOL go together very well. I'm sure you'll have fun and
be productive.
REBOL runs simply as a CGI under Apache.
Here's a simple REBOL CGI as an example. The first line is the shebang
(tells Apache where to find REBOL.exe). The -cs sets the security level, The
content-type is a standard first print line in any CGI:
;;;;;;;;;
#!/bin/rebol/rebol -cs
REBOL [
Title: "demo"
Author: "Sunanda"
Version: 1.0.0
]
print "content-type: text/html^/"
print "<head></head>"
print "A REBOL cgi"
print "Hey, this works"
print ""
;;;;;;;;;
You'll want to install the CORE version of REBOL on the server -- there have
been various reports of VIEW versions not being happy running as CGIs.
For inspiration, take a look at REBOL.org -- the script library. That's
Apache and REBOL running under UNIX.
You might also want to take a look at REBOL Server Pages --
http://www.shlik.org/rsp/
Good luck!
Sunanda.