# "502 Bad Gateway

**URL:** <https://discourse.haproxy.org/t/502-bad-gateway/7303>\
**Category:** Help!\
**Created:** [January 19, 2022, 10:14am UTC](https://discourse.haproxy.org/t/502-bad-gateway/7303 "2022-01-19T10:14:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepak](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@deepak](https://discourse.haproxy.org/u/deepak)\
**Post date:** [January 19, 2022, 10:14am UTC](https://discourse.haproxy.org/t/502-bad-gateway/7303/1 "2022-01-19T10:14:50Z")

</div>

I have to put haproxy in front of my already running wildfly application server. Both haproxy and wildfly-server are on separate ubuntu machines. I had installed haproxy version 1.8.8-1 and it is working fine with http, but getting below error with https:- “502 Bad Gateway: The server returned an invalid or incomplete response”.
