Difference between revisions of "ESXI - WebUI Through a Proxy"

From The TinkerNet Wiki
Jump to navigation Jump to search
(Created page with "If not already there, you'll need to enable the ws_tunnel module on your proxy server: * <code>sudo a2enmod proxy_wstunnel</code> Then add the following to the <VirtualHost>...")
 
Line 1: Line 1:
 +
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:
 
If not already there, you'll need to enable the ws_tunnel module on your proxy server:
  
 
* <code>sudo a2enmod proxy_wstunnel</code>
 
* <code>sudo a2enmod proxy_wstunnel</code>
  
Then add the following to the <VirtualHost> block for your ESXi Server:<blockquote>fffooo</blockquote>and restart Apache:
+
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:
  
 
* <code>sudo service apache2 restart</code>
 
* <code>sudo service apache2 restart</code>

Revision as of 12:18, 24 June 2020

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