Link to home
Start Free TrialLog in
Avatar of crazymaster
crazymasterFlag for India

asked on

HTTP Error 502.2 - Bad Gateway

We have recently migrated from Old webservers (Win2003 - IIS 6) to New Servers (Win2008 R2 - IIS 7). Now we are getting error when accessing the URL getting error

HTTP Error 502.2 - Bad Gateway
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Module      CgiModule
Notification      ExecuteRequestHandler
Handler      CGI Script Map
Error Code      0x000000ff

I recently noticed older Web Server has Perl v5.8.8 and New server has Perl v5.20.1. Need help on this.
ASKER CERTIFIED SOLUTION
Avatar of Shalom Carmel
Shalom Carmel
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Meaning of error message:

502 Bad Gateway
    The server was acting as a gateway or proxy and received an invalid response from the upstream server.

Lets first check that the script itself is working correctly.  Try running the script from the command line instead of through the browser and  post the exact output it generates.

It would also be helpful if you post the script so we can see what it's doing.
Avatar of crazymaster

ASKER

Thanks guys for your reply, HTTP headers was not correct. I have changed it and its working.