502 proxy error

Dear Friends,

I have deployed my rails application in linux slackware 13 and used
apache server.

After deployment i was able to access the login page of my web
application and when i give my login and password it says “502 Proxy
error” like,

Proxy error,

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the post

Reason: Error reading from the remote server.

Actually my post request was sent to proxy server and restricted but get
request works fine.

Could anyone help me to fix this problem?

Thanks in advance…

Regards,
Jose Martin