# Error during login in my cgi/perl application

**URL:** <https://www.ruby-forum.com/t/error-during-login-in-my-cgi-perl-application/218392>\
**Category:** NGINX\
**Created:** [March 30, 2012, 6:32am UTC](https://www.ruby-forum.com/t/error-during-login-in-my-cgi-perl-application/218392 "2012-03-30T06:32:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 30, 2012, 6:32am UTC](https://www.ruby-forum.com/t/error-during-login-in-my-cgi-perl-application/218392/1 "2012-03-30T06:32:26Z")

</div>

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](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:

> **[error during login in my cgi/perl application](https://forum.nginx.org/read.php?2,224647,224647#msg-224647)**
>
> 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 20
