Welcome! Log In Create A New Profile

Advanced

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

August 16, 2010 02:23AM
I sourcecode compile install FCGI-0.67,and install nagios.
I think the CGI can execute,now.
But I found that,when I visit cgi url,Web browser tell that:502 Bad Gateway
I found error in nginx error.log:
[code]
2010/08/16 14:07:51 [error] 1720#0: *3 connect() to unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection refus
ed) while connecting to upstream, client: 219.139.240.250, server: nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream: "fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host: "nagios.abcd.net"
2010/08/16 14:08:12 [error] 1720#0: *3 connect() to unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection refus
ed) while connecting to upstream, client: 219.139.240.250, server: nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream: "fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host: "nagios.abcd.net"
2010/08/16 14:08:43 [error] 1720#0: *3 connect() to unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection refus
ed) while connecting to upstream, client: 219.139.240.250, server: nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream: "fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host: "nagios.abcd.net"
2010/08/16 14:08:51 [error] 1720#0: *3 connect() to unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection refus
ed) while connecting to upstream, client: 219.139.240.250, server: nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream: "fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host: "nagios.abcd.net"
2010/08/16 14:09:11 [error] 1720#0: *3 connect() to unix:/usr/local/nginx/logs/nginx-fcgi.sock failed (111: Connection refus
ed) while connecting to upstream, client: 219.139.240.250, server: nagios.whidc.net, request: "GET /test.cgi HTTP/1.1", upstream: "fastcgi://unix:/usr/local/nginx/logs/nginx-fcgi.sock:", host: "nagios.abcd.net"
[/code]


where has the mistake?:(
Subject Author Posted

Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 14, 2010 11:34PM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

Jérôme Loyet August 15, 2010 06:04AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

Piotr Karbowski August 15, 2010 07:54AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 15, 2010 10:45AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 15, 2010 11:02AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 15, 2010 12:14PM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 16, 2010 02:23AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

zhxd August 16, 2010 03:40AM

Re: Why my server (nginx+php(fastcgi) )can't execute cgi?

Piotr Karbowski August 16, 2010 05:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 257
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready