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

[REBOL] RES: Re: Rebol x Linux x Apache

From: castellani-cpt::itautec-philco::com::br at: 21-Jul-2003 9:45

Thanks -----Mensagem original----- De: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Em nome de [SunandaDH--aol--com] Enviada em: segunda-feira, 21 de julho de 2003 09:22 Para: [rebol-list--rebol--com] Assunto: [REBOL] Re: Rebol x Linux x Apache 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 -- the script library. That's Apache and REBOL running under UNIX. You might also want to take a look at REBOL Server Pages -- Good luck! Sunanda.