Hello everyone, seems to be lots of info on this topic, but we are unable to use VNC when going through an Apache proxy. VNC works as expected if accessed directly from OpenNebula/Sunstone, and we are able to access and perform all other functions through the proxy, but when accessing VNC through proxy we get the " VNC Server disconnected (code: 1006)" so I assume it is related to websockets/ws_tunnel? Here are the details:
OpenNebula 5.4 on single host (IP 192.168.1.71)
Apache 2.4.18 with wstunnel enabled (IP 192.168.1.90)
No firewalls between OpenNebula host and Apache host
ss -ntap |grep 29876
LISTEN 0 100 *:29876 :
SSL not used
Pretty sure this is where the issue is… just do not know how to resolve
ProxyPass / http://192.168.1.71:9869/
ProxyPass / ws://192.168.1.71:9869/
apache log entry:
“POST /vm/11/startvnc HTTP/1.1” 200 568 “http://192.168.1.90/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”
Firefox can’t establish a connection to the server at ws://192.168.1.90:29876/?token=blahblahblah - shouldn’t firefox try to connect to .71?
I am open to using nginx, and have tried briefly with basically the same result. I’m sure it is a ‘ws’ directive issue, just not sure what.
Thanks in advance.