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)
Good example worked for me (Windows CodeBlocks GCC compiler):
from: http://forum.nginx.org/read.php?2,1399,1439,quote=1
I found a solution. I put a ifdef WIN32 and added this line
FCGX_OpenSocket(":1234", 10);
1234 is the port and 10 is the backlog on the listen function.