Hi,
I've managed to setup apache on one of my VMs to show the Proxmox WebUI on port 443. (https://example.com/proxmox/)
Everything works fine except for noVNC, when I try to connect I get a message saying "Server disconnection (code: 1006)" and in the Google Chrome developer console I receive:
When I use noVNC normally through the :8006 WebUI I noticed that it connects the WebSocket to port 8006.
So I understand that I need to proxy the WebSocket to port 8006 but everything I try doesn't seem to work. I've never Proxied a WebSocket so I have no idea if what I have in my config should work, any help would be great!
Here are the relevant parts of my apache config:
Thanks!
I've managed to setup apache on one of my VMs to show the Proxmox WebUI on port 443. (https://example.com/proxmox/)
Everything works fine except for noVNC, when I try to connect I get a message saying "Server disconnection (code: 1006)" and in the Google Chrome developer console I receive:
Code:
WebSocket connection to 'wss://hostIP/api2/json/nodes/hostName/qemu/100/vncwebsocket?port=5900&vncticket=PVEVNC%.....' failed: Error during WebSocket handshake: Unexpected response code: 200
When I use noVNC normally through the :8006 WebUI I noticed that it connects the WebSocket to port 8006.
Code:
wss://hostIP[B]:8006[/B]/api2/json/nodes/hostName/qemu/100/vncwebsocket?port=5900&vncticket=PVEVNC......
So I understand that I need to proxy the WebSocket to port 8006 but everything I try doesn't seem to work. I've never Proxied a WebSocket so I have no idea if what I have in my config should work, any help would be great!
Here are the relevant parts of my apache config:
Code:
(I've enabled the mods: proxy, proxy_http and proxy_wstunnel)
ProxyPass /wss/ wss://192.168.1.1:8006/
ProxyPassReverse /wss/ wss://192.168.1.1:8006/
ProxyPass /proxmox/ https://192.168.1.1:8006/
ProxyPassReverse /proxmox/ https://192.168.1.1:8006/
ProxyPass /pve2/ https://192.168.1.1:8006/pve2/
ProxyPassReverse /pve2/ https://192.168.1.1:8006/pve2/
ProxyPass /api2/ https://192.168.1.1:8006/api2/
ProxyPassReverse /api2/ https://192.168.1.1:8006/api2/
ProxyPass /novnc/ https://192.168.1.1:8006/novnc/
ProxyPassReverse /novnc/ https://192.168.1.1:8006/novnc/
ProxyPass /vncterm/ https://192.168.1.1:8006/vncterm/
ProxyPassReverse /vncterm/ https://192.168.1.1:8006/vncterm/
Thanks!