How to configure a reverse proxy for Truesight Presentation Server (TSPS) |
Using Apache Web Server as Reverse-Proxy Server for example assuming Apache Web Server is already installed and configured with TLS/SSL as per Operating System. Please visit the below URL for more information https://www.apachelounge.com/ http://httpd.apache.org/docs/current/install.html https://httpd.apache.org/docs/current/ssl/ssl_howto.html Apache Module "mod_proxy" while be used to configure Reverse Proxy in Apache Web Server https://httpd.apache.org/docs/2.4/mod/mod_proxy.html ======= Configuration required in Apace Web Server ============== 1. Stop Apache Web Server 2. Navigate to the location <Apache24_Install>\conf/extra and open httpd-ssl.conf 3. Add below proxy setting in virtual host section just above </VirtualHost> tag as below ProxyPass / "ajp://<TSPS_SERVER_FQDN>:<TSPS_CSR_SERVER_AJP_PORT>/" secret=<DEFINE_A_SECERT_STRING> ProxyPassReverse / "ajp://<TSPS_SERVER_FQDN>:<TSPS_CSR_SERVER_AJP_PORT>/" secret=<DEFINE_A_SECERT_STRING> ProxyPassReverseCookiePath "/" "/" </VirtualHost> 4. Save httpd-ssl.conf and start Apache Web Server ======= Configuration required in TSPS CSR Server ============== 1. Stop CSR Process in TSPS using command tssh process stop csr 2. Navigate to location <TSPS_INSTALL_DIR>\TrueSightPServer\truesightpserver\modules\tomcat\conf and open server.xml 3. Search for AJP protocol and make changes as below <Connector port="<TSPS_CSR_SERVER_AJP_PORT>" protocol="AJP/1.3" redirectPort="<SSL_PORT>" secret="<DEFINE_A_SECERT_STRING>" secretRequired="true" allowedRequestAttributesPattern=".*" maxThreads="200" connectionTimeout="20000" proxyName="<REVERSE_PORXY_SERVER_FQDN>" proxyPort="<REVERSE_PORXY_SERVER_PORT>"/> 4. Save server.xml. 5. Start CSR Process in TSPS using command tssh process start csr Now try to access TSPS console from FQDN of system where Apache Web Server is installed https://<APACHE_SERVER_REVERSE_PROXY_CONFIGURED_FQDN>/ Above is just an outline, you may configure a reverse proxy Server like IBM HTTP Server, Nginx etc, PS:- Please note installing or configuring a Reverse proxy Server with TSPS is beyond Product Support. The above steps should only be used as a reference. Make sure regress testing is done in QA environment before implementing same configuration in Prod environment. Any performance-related or configuration issue with the reverse proxy server is beyond scope of support. |