我已經配置了一個Web服務器,通過命名管道使用'遠程'fastCGI應用程序(它實際上在同一個Windows主機上)。我現在試圖找出如何啓動fastCGI應用程序來使用這個管道,但我不確定這應該如何完成。其他操作系統似乎有spawn-fcgi實用程序用於執行此操作,但對於Windows似乎沒有任何類似的操作。如何在Windows上手動啓動fastCGI應用程序?
這是我的APP:
#include <stdio.h>
#include "fcgi_stdio.h"
int main(int argc, char ** argv)
{
while (FCGI_Accept() >= 0) {
printf("Content-type: text/html\r\n"
"\r\n"
"<title>Web Services Interface Module</title>"
"<h1>Web Services Interface Module</h1>\n");
}
return(0);
}
出於興趣我使用的深淵Web服務器,雖然我希望不會對答案的軸承。
問候
+1:謝謝。但是在代碼中的什麼地方應該被調用? – 2013-04-19 08:35:20