I had a Apache server as a reverse proxy in front of some web server. One of the web server is an NOVNC which required wstunnel connection.
I can access via https://a.example.com/
, everything works fine.
However, I want to know the connection concept about the wstunnel connection. How the wstunnel establish the connection to the NOVNC?
Current connection:
User client<------------------>Reverse proxy server <------------->NOVNC
(Https) (http)
Apache Server configuration(2.4.54):
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ProxyRequests off
ProxyPreserveHost on
ProxyPass / http://192.168.0.1:6800/
ProxyPassReverse / http://192.168.0.1:6800/
<LocationMatch ^/(api2/json/nodes/[^\/]+/[^\/]+/[^\/]+/vncwebsocket.*)$>
ProxyPass ws://192.168.0.1:6800/$1 retry=3
</LocationMatch>
ProxyPass /websockify ws://192.168.0.1:6800/websockify
ProxyPassReverse /websockify ws://192.168.0.1:6800/websockify
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^websocket$ [NC]
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
RewriteRule /(.*) ws://192.168.0.1:6800/$1 [P,L]
I checked the TCP connection in NOVNC server, the NOVNC server is established a TCP connection to the proxy server.
- Is that means there is an "wss" connection between client and reverse proxy server, an "ws" connection between reverse proxy server?
User client Reverse proxy server NOVNC
<------------------> <------------->
(wss) (ws)
- How the wstunnel establish the connection to the NOVNC?
- Did the wstunnel connection secure?or just an "ws" connection established?
User client Reverse proxy server NOVNC
<------------------> <------------->
(ws) (ws)