I read some of the other posts on this, stating that this has been resolved. But I am still having some issues with it.
Trying to run the Proxmox's Gui through a load balancer. Nginx or Apache (I've tried both)
I pulled this config off the forums, and it works, WITHOUT the "BalanceMember" part the problem happens when I add the Balancer member part of the code
The problem I am having is the Servers Shell wont work. However VMs console does work. When I tried this config in NGINX the VMs console, only worked maybe 20-50% of the time. With Apache this appears to be fixed, however still having issues when i Try to access the servers shell
My Apache Config:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/crt
SSLCertificateKeyFile /etc/apache2/ssl/key
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyRequests off
ProxyPreserveHost on
<Proxy "balancer://proxmox">
BalancerMember "https://192.168.4.31:8006"
BalancerMember "https://192.168.4.32:8006"
</Proxy>
<Proxy "balancer://wss-proxmox">
BalancerMember "wss://192.168.4.31:8006"
BalancerMember "wss://192.168.4.32:8006"
</Proxy>
<Proxy "balancer://ws-proxmox">
BalancerMember "ws://192.168.4.31:8006"
BalancerMember "ws://192.168.4.32:8006"
</Proxy>
<Location />
ProxyPass "balancer://proxmox/"
ProxyPassReverse "balancer://proxmox/"
Order allow,deny
Allow from all
</Location>
<LocationMatch ^/(api2/json/nodes/[^\/]+/[^\/]+/[^\/]+/vncwebsocket.*)$>
ProxyPass "balancer://wss-proxmox/$1"
</LocationMatch>
<Location /websockify>
ProxyPass "balancer://ws-proxmox/"
ProxyPassReverse "balancer://ws-proxmox/"
</Location>
</VirtualHost>
Trying to run the Proxmox's Gui through a load balancer. Nginx or Apache (I've tried both)
I pulled this config off the forums, and it works, WITHOUT the "BalanceMember" part the problem happens when I add the Balancer member part of the code
The problem I am having is the Servers Shell wont work. However VMs console does work. When I tried this config in NGINX the VMs console, only worked maybe 20-50% of the time. With Apache this appears to be fixed, however still having issues when i Try to access the servers shell
My Apache Config:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/crt
SSLCertificateKeyFile /etc/apache2/ssl/key
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyRequests off
ProxyPreserveHost on
<Proxy "balancer://proxmox">
BalancerMember "https://192.168.4.31:8006"
BalancerMember "https://192.168.4.32:8006"
</Proxy>
<Proxy "balancer://wss-proxmox">
BalancerMember "wss://192.168.4.31:8006"
BalancerMember "wss://192.168.4.32:8006"
</Proxy>
<Proxy "balancer://ws-proxmox">
BalancerMember "ws://192.168.4.31:8006"
BalancerMember "ws://192.168.4.32:8006"
</Proxy>
<Location />
ProxyPass "balancer://proxmox/"
ProxyPassReverse "balancer://proxmox/"
Order allow,deny
Allow from all
</Location>
<LocationMatch ^/(api2/json/nodes/[^\/]+/[^\/]+/[^\/]+/vncwebsocket.*)$>
ProxyPass "balancer://wss-proxmox/$1"
</LocationMatch>
<Location /websockify>
ProxyPass "balancer://ws-proxmox/"
ProxyPassReverse "balancer://ws-proxmox/"
</Location>
</VirtualHost>