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

[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 > localhost:15001 > > <Location /fastcgi-bin> > > SetHandler fastcgi-script > > </Location> > > ExternalAppClass /fastcgi-bin -host localhost:15001 > > > > Unix: > > Just replace the path after FastCgiExternalServer with your complete > path > > 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 > of > such script? > > Thansk, > -pekr- >
It worked with a link; path-to\rebolcmd -cs fastcgi.r running in path-to ---------------- and it worked with a batchfile starting; cd path-to-rebol_cmd rebolcmd -sqw fastcgi.r cd path-to-apache apache ---------------- The header looks like every other Rebol script and a simple program looks like this. Rebol [] fcgi: open fastcgi://:15001 count: 0 forever [ 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 "^/" close fcgi-conn ] ;AR