English

Error: 502 Web server received an invalid response while acting as a gateway or proxy server

Error Message

Accessing a web server with not trusted or expired Portal for ArcGIS and/or ArcGIS Server self-signed certificates returns the following error, even if the web server certificate is valid.

Error:   
Error: 502 Web server received an invalid response while acting as a gateway or proxy server

Cause

Despite a valid Secure Sockets Layer (SSL) certificate on the web server, the error is returned because the Portal for ArcGIS and ArcGIS Server self-signed certificates have expired.

Note:
There are no web adaptors in an Azure Web Geographical Information Systems Cloud Builder deployment. Instead, a URL Rewrite is used, redirecting from a web server URL to HTTPS port 7443 for Portal for ArcGIS, and HTTPS port 6443 for ArcGIS Server.

Solution or Workaround

To circumvent the error, follow the steps below:

  1. Export the self-signed certificates from Portal for ArcGIS and ArcGIS Server.
  2. Install these certificates to the server's trusted storage.
  3. Switch Portal for ArcGIS and ArcGIS Server to use their self-signed certificates.

Related Information