[REBOL] Re: (No subject)Date: Tue, 3 Jul 2001 20:18:03 +0200
From: sqlab:gmx at: 4-Jul-2001 12:29
That was my first message, although delivered later.(
> > Hi
> > As there were a few configurations described for fastcgi with Apache,
> > I will add my working configuration (Linux and Windows).
> > Windows:
> > FastCgiExternalServer "D:/Apache/mydocs/fastcgi-bin" -host
> > <Location /fastcgi-bin>
> > SetHandler fastcgi-script
> > </Location>
> > ExternalAppClass /fastcgi-bin -host localhost:15001
> > Unix:
> > Just replace the path after FastCgiExternalServer with your complete
> > without hyphens to the non-existing location.
> > And don't forget to use getmodes right;
> > cgi-data: get-modes fastcgi-conn 'cgi ; in your Rebol script.
> OK, because I still don't seem to get it, few straightforward questions
> 1) How do you start your rebol instances - what parameters (-sqw ??),
> scripts, etc.
> 2) What is in the header of your .fcgi script? Could you post an example
> such script?
It worked with a link;
path-to\rebolcmd -cs fastcgi.r
running in path-to
and it worked with a batchfile starting;
rebolcmd -sqw fastcgi.r
The header looks like every other Rebol script
and a simple program looks like this.
fcgi: open fastcgi://:15001
fcgi-conn: first fcgi
fcgi-data: get-modes fcgi-conn 'cgi
insert fcgi-conn "Content-Type: text/plain^/^/"
count: count + 1
insert fcgi-conn join "Round " [count "^/^/]
insert fcgi-conn mold fcgi-data
insert fcgi-conn "^/"