Error during login in my cgi/perl application

Hi

 I am trying to run my application which having html+cgi/perl

files. during the login its giving the following error.

In Browser I am getting the following error

502 Bad Gateway

and In error log file

2012/03/30 09:58:05 [error] 29619#0: *1 upstream closed prematurely
FastCGI stdout while reading response header from upstream, client:
192.168.1.44, server: localhost, request: “GET
/cgi-bin/baybuy_vendx/index.cgi?vendx_action=myoffice_commonuser&userid=53616c7465645f5f1fed4bcaa10a7da569ecb5a53e5a718a&page=1b662ecc4610f940ec530e3bc8762169&BusinessGrID=1
HTTP/1.1”, upstream: “fastcgi://unix:/var/run/fcgiwrap.socket:”, host:
“192.168.1.225:90”, referrer:
http://192.168.1.225:90/cgi-bin/baybuy_vendx/index.cgi?vendx_action=validate_both2

Please guide for the same.

Posted at Nginx Forum: