ESXI - WebUI Through a Proxy

From The TinkerNet Wiki
Jump to navigation Jump to search

When proxying ESXi through Apache, VM consoles fail...

Apparently, Console sessions use WebSockets.

This turns out to be fairly simple to solve.

If not already there, you'll need to enable the ws_tunnel module on your proxy server:

  • sudo a2enmod proxy_wstunnel

Then add the following to the <VirtualHost> block for your ESXi Server:

# Redirect wss traffic
ProxyPass /ticket/ wss://ESXiServer.MyDomain.net/ticket/
ProxyPassReverse /ticket/ wss://ESXiServer.MyDomain.net/ticket/

and restart Apache:

  • sudo service apache2 restart