[REBOL] Re: About FastCGI
From: petr:krenzelok:trz:cz at: 2-Jul-2001 15:13
Hi,
thanks for the answer. After playing with FastCGI concept thru the weekend and
nearly going mad I finally have something working, but Windoze and Linux
behave differently, although I use the same directives ...
[sqlab--gmx--net] wrote:
> Hi
>
> It seems, something went wrong with my former message, so once again.
>
> 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
So, I haven't tried this mode yet. FastCGI works in three modes - static (only
when FastCGIServer directive is used), dynamic (default) and external.
In default (dynamic) mode, your webserver starts/kills your apps itself. It
seems to me, that for each url (script), it starts one instance of rebolcmd
and at least one instance is running in the background.
I am curious how does it communicate, if no host is specified. It has to use
unix sockets or something like that, because I am not listening on any port,
or am I?
One question for you, as you seem to succesfully use External mode - do you
run listening loop as described in fastcgi command docs in the beginning of
each your script. Or you just start your server with such script?
One thing I am not able to resolve is - where to put license.key file? Rebol
seems to look for license.key file in the launch dir = dir of your script ...
How do I solve this one? :-)
> <Location /fastcgi-bin>
> SetHandler fastcgi-script
> </Location>
> ExternalAppClass /fastcgi-bin -host localhost:15001
>
Uhmm, never seen this one :-) Is it really required?
Thanks,
-pekr-