UEM Injection through the Applicare Reverse Proxy Server

Needs internet access

This article links to a file hosted online. To install on a host without internet access, download it beforehand on a connected machine.

Check this against your version

This article was last updated on Apr 1, 2025, before Applicare 10.0 was released (Jun 19, 2026), and has not been re-checked for Applicare 10.0. Confirm the steps in your environment or contact Support.

User Experience: An Overview

Screenshot 1 — UEM Injection through the Applicare Reverse Proxy Server

User Experience: Transaction Overview

Screenshot 2 — UEM Injection through the Applicare Reverse Proxy Server

User Experience: Real-Time Transactions

Screenshot 3 — UEM Injection through the Applicare Reverse Proxy Server

Steps to configure the Applicare reverse proxy server

Step 1: Download the Applicare Reverse Proxy Server from this link download here.

Step 2: Navigate to the path <applicare_reverseProxy>/conf and modify the reverseproxy.conf file.

Step 3: Change the listen port and server_name value inside the server { block.

listen -> Applicare reverse proxy server PORT

server_name -> Applicare reverse proxy server IP

Screenshot 4 — UEM Injection through the Applicare Reverse Proxy Server

e.g.

Screenshot 5 — UEM Injection through the Applicare Reverse Proxy Server

Step 4: Add the upstream configuration before the server { block

Syntax:

upstream UPSTREAM_REDIRECTOR_NAME {
    ip_hash;
    server REDIRECTOR_APPLICATION_IP:REDIRECTOR_APPLICATION_PORT;
}

Example:

upstream petstoreredirect {
    ip_hash;
    server 192.168.0.165:8881;
}

Step 5: Add the new location block after the location / { block

Syntax:

location /REDIRECTOR_APPLICATION_BASE_URL {
    proxy_pass REDIRECTOR_APPLICATION_PROTCOL://UPSTREAM_REDIRECTOR_NAME;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    sub_filter '</body>' '</body>new_string';
    sub_filter_once off;
}

Step 6: Replace the REDIRECTOR_APPLICATION_BASE_URL with the application base url.

REDIRECTOR_APPLICATION_BASE_URL -> JPetStore

location /JPetStore {

Step 7: Replace the REDIRECTOR_APPLICATION_PROTCOL and UPSTREAM_REDIRECTOR_NAME.

REDIRECTOR_APPLICATION_PROTCOL -> http

UPSTREAM_REDIRECTOR_NAME -> petstoreredirect

proxy_pass http://petstoreredirect;

Step 8: Login to Applicare console and go to User Experience -> Settings -> UEM Script screen and copy the script and replace it in the place of new_string keyword in the sub_filter in the Nginx sever conf file.

Screenshot 6 — UEM Injection through the Applicare Reverse Proxy Server

The conf file will appear as shown below.

Screenshot 7 — UEM Injection through the Applicare Reverse Proxy Server

Step 9: Substitute the following values.

a. Replace <SERVER_NAME> with a unique identifier for your application.

b. Set the value from "true" to "false".

c. In the "t_backend" section, update the value from "0" to "$request_time" * 1000

Screenshot 8 — UEM Injection through the Applicare Reverse Proxy Server

Step 10: Navigate to the <applicare_reverseProxy> home directory and run the following command to start.

startreverseproxy.bat

Step 11: Access the application through the Reverse Proxy server.

Syntax:

<REVERSE_PROXY_PROTOCOL>://<REVERSE_PROXY_IP>:<REVERSE_PROXY_PORT>/REDIRECTOR_APPLICATION_BASE_URL

e.g.

http://192.168.0.113:83/JPetStore

Step 12: Navigate to the <applicare_reverseProxy> home directory and run the following command to stop the Reverse Proxy Server.

stopreverseproxy.bat

Was this article helpful?

Votes and follows are kept by Zendesk, so they need a Help Center account. These buttons open this article there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support