Unable to connect to OneClick WebApp via Apache HTTPD reverse proxy
search cancel

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://xx.x.x.x:9443/spectrum/oneclickwebapp"
ProxyPassReverse"/spectrum/oneclickwebapp" "https://xx.x.x.x:9443/spectrum/oneclickwebapp"
ProxyPass"/""https://xx.x.x.x:8443/"
ProxyPassReverse"/""https://xx.x.x.x:8443/"
 
RewriteEngineOn
RewriteCond%{REQUEST_URI} "^/spectrum/oneclickwebapp/.*"
RewriteCond%{HTTP:Upgrade} =websocket
RewriteRule /(.*) wss://xx.x.x.x:9443/$1 [P,L]
RewriteCond%{REQUEST_URI} "^/spectrum/oneclickwebapp/.*"
RewriteCond%{HTTP:Upgrade} !=websocket
RewriteRule /(.*) https://xx.x.x.x: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