Users access VMWare management environment via SAC Web application.
Users can browse to view all available VMs without issues, but fail to get remote web console access. Instead of connecting to the remote host, the client would simply sit there doing nothing.
HAR files showed connectivity errors for connections to internal hostnames, and not the expected external application hostname.
Accessing the back end using a generic TCP application works fine.
SAC Web application.
Rewriter issues.
Web socket connection fails due to rewriting issues triggered by javascript application.
Added custom rewriter entry to rewrite javascript code connection logic to reference the external SAC domain. In our example, we found that the Websocket connection was built on the following parameters
websocket="+("wss://"+l+"/"+host+";"+t)
Each variable within this logic needed to reference the external SAC domain, and not the internal host we were trying to access. To do this, we needed to track where each variable came from e.g. 'host' variable was the hostname, and see whether we could rewrite this. From the HAR file, we searched for the internal hostname and found it in response to a POST request to an endpoint as shown below.
Armed with this information, we then created a custom link translation content rule to rewrite this host from the internal to it's external name.