Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

I found I could not access console via Apache Proxy Pass, I recommend using NginX

set up Apache ProxyPass to a WebSocket Application. 
PS: the HTML5 Web-Client uses WebSocket.

Example ProxyPass Config:

This Mod must be enabled:

sudo a2enmod proxy_wstunnel

(It is still in beta, and im not sure if they meant for it to be public facing, and I was worried about Authorization so I added an extra Authentication Step, but you can decide!)

Read here for .htpasswd info

 ServerName domain.com
    Redirect / https://www.domain.com/




    ServerName www.domain.com
   
    ##SSL CONFIG
    SSLProxyEngine On
    SSLProxyCheckPeerCN on
    SSLProxyCheckPeerExpire on
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/domain/domain.crt
    SSLCACertificateFile /etc/apache2/ssl/domain/bundle.ca
    SSLCertificateKeyFile /etc/apache2/ssl/domain/server.key
    
    ##PROXY GENERAL CONFIG
    ProxyRequests Off
    
        Order deny,allow
        Allow from all
    
    ProxyPreserveHost on

    ##CUSTOM WEBSOCKET LOCATION [ALL 3 WORK  tags allow more parameters]
    ##Non Secure WebSocket = ws://192.168.1.42:443/ui
    ##Secure WebSocket     = wss://192.168.1.42:443/ui

    ##WITH AUTHORIZATION OPTION
    
    	AllowOverride AuthConfig
    	AuthUserFile /home/[USERNAME]/.htpasswd
    	AuthName "Authorization Required"
    	AuthType Basic
    	require user [USERNAME]
    	ProxyPass 	 wss://192.168.1.50:443/ui
    	ProxyPassReverse wss://192.168.1.50:443/ui
    

    ##OR W/O AUTH
    
    	ProxyPass 	 wss://192.168.1.50:443/ui
    	ProxyPassReverse wss://192.168.1.50:443/ui
    

    ##OR W/O LOCATION TAGS
        ProxyPass 	 /ui wss://192.168.1.42:443/ui
        ProxyPassReverse /ui wss://192.168.1.42:443/ui
    

    ##MAIN WEBPAGE domain.com 
        ProxyPass	 / https://192.168.1.42:443/
 	ProxyPassReverse / https://192.168.1.42:443/
  • No labels