502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (acting as a gateway or proxy) contacted the upstream content server, it received an invalid response.
Recreate Issue
SSL Certificates are not the same throughout the IIS Server Farm.
When building an [ARR Server Farm], all machines must match; if not, you will receive the [502 Bad Gateway error]. The [SSL Certificate] is just one of many different issues if the configurations are not identical.
Resolve Issue
Ensure all [SSL Certificates] are the same on all machines throughout the [IIS Server Farm]. These include the [ARR] (Application Request Routing) and [IIS Servers].
To ensure they are the same, it is best to export the most recent [SSL Web Server Certificate] from the known good server and copy and install this certificate throughout the [IIS Server farm].