Perl web serving with nginx and FastCGI - not able to read parameters Perl web serving with nginx and FastCGI - not able to read parameters nginx nginx

Perl web serving with nginx and FastCGI - not able to read parameters


CGI::Fast will handle most of the work for you, including setting up the daemon.

use CGI::Fast;local $ENV{FCGI_SOCKET_PATH} = ":9000";local $ENV{FCGI_LISTEN_QUEUE} = 20;while ($q = CGI::Fast->new) {    print $q->header;    print "<html><body>The foo input is ", $cgi->param('foo'), "</body></html>";}

An alternative is Nginx::Simple which gives you more control over the behavior of your cgi-script-as-daemon.