Unable to connect to OneClick WebApp via Apache HTTPD reverse proxy

book

Article ID: 224438

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When accessing the oneclick web app via reverse proxy, we get a "Connection to server has been lost message" instantly.

 

Resolution

Known configuration to work with Spectrum WebApp - replace IP with your IP or hostname:

ProxyPass"/spectrum/oneclickwebapp" "https://10.0.0.1:9443/spectrum/oneclickwebapp"
ProxyPassReverse"/spectrum/oneclickwebapp" "https://10.0.0.1:9443/spectrum/oneclickwebapp"
ProxyPass"/""https://10.0.0.1:8443/"
ProxyPassReverse"/""https://10.0.0.1:8443/"
 
RewriteEngineOn
RewriteCond%{REQUEST_URI} "^/spectrum/oneclickwebapp/.*"
RewriteCond%{HTTP:Upgrade} =websocket
RewriteRule /(.*) wss://10.0.0.1:9443/$1 [P,L]
RewriteCond%{REQUEST_URI} "^/spectrum/oneclickwebapp/.*"
RewriteCond%{HTTP:Upgrade} !=websocket
RewriteRule /(.*) https://10.0.0.1:9443/$1 [P,L]
 
 
It is also suggested to update /etc/hosts file with the server names/IPs.
 
 

Additional Information

https://www.webswing.org/docs/21.1/start/proxy.html