我已经配置了一个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