Configuring N4V for Webi behind an Apache Reverse Proxy

Anonymised summary of support ticket #407413 (2024-12-23)

Symptom

Performance issues and blocked N4V visuals in SAP BusinessObjects Web Intelligence when accessed through an Apache reverse proxy. Graphical components fail to render or export, particularly when using HTTPS.

Environment

SAP BusinessObjects BI 4.3 with N4V FOR WEBI extension. Environment includes an Apache reverse proxy handling HTTPS traffic to the SAP BO server. N4V components rely on static files served by a Node.js-based web application (N4VCustomElements).

Resolution

  1. Update the N4V configuration file on the N4V server: Modify the file located in the Node.js module path (e.g., `Need4Viz/nodejs/node_modules/custom_element/ce_libs/config.js`) to set the `URLNodeJSServer` parameter to the reverse proxy URL accessible by end users.
  2. Ensure the reverse proxy is correctly configured to route requests for the N4V static resources (e.g., `/n4v-custom-elements/`) to the internal Node.js server hosting the N4VCustomElements webapp.
  3. Restart N4V services by running `pm2 start all` in an administrator PowerShell session on the N4V server to apply the configuration changes.
  4. For PDF/XLS exports of N4V visuals: Ensure the URL defined in `config.js` is accessible from the N4V server itself, as a Chromium browser embedded in the server performs the HTML-to-PNG conversion. If external APIs (e.g., Google Maps, OpenStreetMap) are required for components like Sankey or maps, allow the N4V server to access these web services. Alternatively, disable printing for unsupported components in the configuration.

Other resolution

Additional notes: In SAP BI 4.3, using N4V behind an HTTPS reverse proxy may require extra Tomcat configuration on the SAP BO server. Refer to N4V architecture documentation for communication requirements between SAP BO and N4V components.