How to Start a Stand-alone FastCGI Server on Windows?
Jack L <jlist9-FFYn/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I need to write my own FastCGI server on Windows. I downloaded the fcgi-2.4.0 package from http://fastcgi.com. It has MS VC++ project files. I had no problem building the samples. However, I haven't figured out how to run these samples as a stand-alone FastCGI server. For example, how do I tell it to what port to listen on? Is there some command line arguments to do that? If I just run a sample fcgi server from the command line, say, echo.exe, it displays "unknown listenType (0)" and exits. I also compiled the same code with cygwin. Lighttpd has a nice tool spawn-fcgi to start an app. And it works perfectly with the cygwin version of the fcgi samples. I can specify the port in spawn-fcgi command line. But this tool somehow does not work with the Windows (MS VC) version of the fcgi samples. This is probably because spawn-fcgi uses the Unix way to start the app and set the environment and the MSVC version doesn't recognize it. Because I have a DLL that is compiled on native Windows (I don't have the source code for it.) I don't really want to have dependency on the cygwin DLLs either. That's why I'm hoping to figure out how to make the Windows version fastcgi server samples work. Any hint is welcome. -- Best regards, Jack __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/