lighttpd通过fastcgi调用gsoap

1.lighttpd的配置文件如下:

点击(此处)折叠或打开

  1. fastcgi.debug = 0
  2.   fastcgi.server = ( "/onvif/" =>
  3.       ((
  4.          "socket" => "/tmp/onvif-fastcgi.socket",
  5.          "bin-path" => "/usr/sbin/onvif",
  6.          "check-local" => "disable"

  7.        ))
  8. )
2.gosp的入口函数:

点击(此处)折叠或打开

  1. int main(void)
  2. {
  3. return soap_serve(soap_new());
  4. }
编译的时候加入-DFASTCGI.

3.通过 http://IP/onvif/device_service测试。
 
 
 
http://blog.chinaunix.net/uid-27018250-id-3430392.html

你可能感兴趣的:(lighttpd通过fastcgi调用gsoap)