BUG

ArcGIS Server WFS behind reverse proxy does not work using the internal port 6443 for communication and returns the following error message, "Bad Gateway: The proxy server received an invalid response from an upstream server."

Last Published: October 10, 2023

Description

OGS WFS (Web Feature Service) configured on an ArcGIS Server behind reverse proxy does not work using the internal port 6443 for communication and returns the following error message - "Bad Gateway: The proxy server received an invalid response from an upstream server."

Workaround

A possible workaround is to disable streaming for the WFS.

To update the service property via JSON, refer to the Disable Streaming property in the ArcGIS REST APIs help topic: Extension types: WFSServer

ArcGIS Server Manager version 11.1

The option to disable streaming is available in ArcGIS Server Manager as of version 11.1. Here are the steps:

  1. In a browser, open ArcGIS Server Manager.
  2. Click the service you want to edit.
  3. Under Capabilities > WFS, scroll to the bottom of the page, to the checkbox called Disable Streaming, shown in the image below.
  4. Uncheck the checkbox.
  5. Save and restart the service

ArcGIS Enterprise 10.9.x and prior

For ArcGIS Enterprise 10.9.x and older versions, add the disableStreaming property to the WFS service properties from the ArcGIS REST admin interface as can be seen below.

  1. In a browser, open the ArcGIS Server Administrator Directory.
  2. Navigate to the service to edit.
  3. Scroll to the bottom of the page and click Edit.
  4. Scroll down in the Service Properties box to "typeName": "WFSServer"
  5. Add the disableStreaming property to the WFS service properties - "disableStreaming": "true", as shown in the next image.
  6. Click Save Edits.
  7. Restart the service.

Unless the datasets are very large, there should be no significant difference by disabling streaming. For those with large datasets who want to keep streaming, the workaround is to put an ArcGIS Web Adaptor between the reverse proxy and ArcGIS Server. Reference ArcGIS Server in ProxyPass and ProxyPassReverse with ArcGIS Web Adaptor URL.

Article ID: 000031305

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options