Re: Trying to port fastcgi to JavaScript

Franky Braem <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
David Birnbaum wrote:
> On Thu, 7 Feb 2008, Franky Braem wrote:
>
>>>> I configured Apache as follows:
>>>>
>>>> LoadModule fastcgi_module modules/mod_fastcgi.dll
>>>> FastCGIExternalServer
>>>> "c:/development/wxjs/wxjs2/bin/Debug/wxJS_fcgi.exe"  -host 
>>>> localhost:9000
>>>> <Directory c:/xampp/htdocs/fcgi>
>>>>    SetHandler fastcgi-script
>>>>    Options execCGI
>>>>    AllowOverride None
>>>>    Order allow,deny
>>>>    Allow from all
>>>> </Directory>
>>>>
>>>> But when I load http://localhost/fcgi/test.wxjs, I get a server error
>>>> and see the following in the logs:
>>>
>>> Your ExternalServer path and your SetHandler path don't match up; 
>>> it's trying to launch a dynamic application, and that doesn't appear 
>>> to be working.
>>>
>> 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

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.