Re: Trying to port fastcgi to JavaScript

David Birnbaum <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Well, now it looks like your application isn't working.  You can strace 
it or run it in the debugger and see why it's not listening on port 9000 
like it should.

Franky Braem wrote:
> David Birnbaum wrote:
>> On Fri, 8 Feb 2008, Franky Braem wrote:
>>
>>>>> How do I configure Apache and mod_fastcgi so that all requests are 
>>>>> passed to wxJS_fcgi.exe? My goal is that all JavaScript files 
>>>>> stored in localhost/fcgi are executed by wxJS_fcgi.
>>>>
>>>> I'm pretty sure that if you just change your external line to:
>>>>
>>>>   FastCGIExternalServer c:/xampp/htdocs/fcgi -host localhost:9000
>>>>
>>>> it will try to connect to your local application on port 9000.
>>> Ok this works now. I was confused with the 'filename' parameter of 
>>> FastCGIExternalServer.
>>>
>>> Is it possible to do the same with FastCGIServer? Is it possible to 
>>> start an application that is not stored in the cgi directory?
>>> Something like this:
>>>
>>> FastCGIServer "c:/development/wxjs/wxjs2/bin/debug/wxjs_fcgi.exe" 
>>> -port 9000
>>> AddHandler wxjs-fcgi .wxjs
>>> <Location c:/xampp/htdocs/fcgi>
>>> SetHandler fastcgi-script
>>> </Location>
>>> Action wxjs-fcgi wxjs_fcgi.exe
>>
>> It's a little odd, but you should be able to add this in:
>>
>>   FastCGIExternalServer "c://xampp/htdocs/fcgi" -host localhost:9000
>>
>> FastCGI will start the App with the Server line, and you connect to 
>> it with the external server line.
> I've done the following now:
>
> FastCGIServer "c:/development/wxjs/wxjs2/bin/debug/wxjs_fcgi.exe" 
> -port 9000
> FastCGIExternalServer "c:/xampp/htdocs/fcgi" -host localhost:9000
> AddHandler wxjs-fcgi .wxjs
> <Location c:/xampp/htdocs/fcgi>
>  SetHandler fastcgi-script
> </Location>
> Action wxjs-fcgi c:/xampp/htdocs/fcgi
>
> But this gives a server error. This is the Apache log:
>
> [Fri Feb 08 22:25:36 2008] [warn] FastCGI: server 
> "C:/development/wxjs/wxJS2/bin/debug/wxJS_fcgi.exe" started (pid 3324)
> [Fri Feb 08 22:26:11 2008] [error] [client 127.0.0.1] FastCGI: comm 
> with server "C:/xampp/htdocs/fcgi/test.wxjs" aborted: idle timeout (30 
> sec)
> [Fri Feb 08 22:26:11 2008] [error] [client 127.0.0.1] FastCGI: 
> incomplete headers (0 bytes) received from server 
> "C:/xampp/htdocs/fcgi/test.wxjs"
>
> Franky
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.