Why is Perl Cgiwrap Sock refusing connection to nginx?

Posted by Emmanuel on Server Fault See other posts from Server Fault or by Emmanuel
Published on 2011-11-20T09:31:44Z Indexed on 2011/11/20 9:58 UTC
Read the original article Hit count: 584

Filed under:
|
|
|

Could anyone shed some light on the following line in my nginx error logs. I'm trying to get Perl and Nginx talking to each other, but so far no success.

unix:/var/run/nginx/cgiwrap-dispatch.sock failed (111: Connection refused)2011/11/20 09:18:34 [error] 24054#0: *1186 connect() to unix:/var/run/nginx/cgiwrap-dispatch.sock failed (111: Connection refused) while connecting to upstream, client: 150.101.221.75, server: example.com, request: "GET /dspam.cgi HTTP/1.1", upstream: "fastcgi://unix:/var/run/nginx/cgiwrap-dispatch.sock:", host: "example.com"

The relevant nginx configs.

location ~ \.cgi$ {
        gzip off;
        include /etc/nginx/fastcgi_params;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_index index.pl;
        fastcgi_param SCRIPT_FILENAME /var/www/dspam$fastcgi_script_name;
}

© Server Fault or respective owner

Related posts about nginx

Related posts about fastcgi