Running C++ as FastCGI in Lighttpd -
i'm trying run c++ binaries fastcgi in lighttpd, won't start. tried this:
fastcgi.server += (".cpp" => ( "localhost" => ( "socket" => "/tmp/mysocket", "bin-path" => "/var/www/index.cpp", "max-procs" => 1 )) )
but can't working. want maintain c++ in memory starting fast.
you should adapt configuration this:
fastcgi.server = ( "/api" => ( "api.fastcgi.handler" => ( "socket" => "/var/run/lighttpd/lighttpd-fastcgi-test-" + pid + ".socket",, "check-local" => "disable", "bin-path" => "/var/www/localhost/cgi-bin/test.fcgi", "max-procs" => 30, ) ) )
for requests: localhost/api/some_test lighttp phone call fcgi executable /var/www/localhost/cgi-bin/test.fcgi
c++ fastcgi lighttpd
No comments:
Post a Comment