Search code examples
windowsfastcgispawn-fcgi

spawn fastcgi apps on windows?


I wrote a toy fastcgi app using the linux example. I'd like to run it on windows now. How do i do it? I know how to spawn the process on linux and connect to it via nginx (or lighttp). I have no idea how to spawn the process on widnows. I build the app using pthreads and the fastcgi lib. spawning is my next step. I googled with no luck. I'd like to connect via nginx on windows.

How do i spawn my fastcgi app on windows? (i'm on windows 7)


Solution

  • I found a solution. I put a ifdef WIN32 and added this lineFCGX_OpenSocket(":1234", 10); 1234 is the port and 10 is the backlog on the listen function.