Skip to content

Commit 6f15d6b

Browse files
committed
work work required on webserver -> pve proxy for VNC and spice
1 parent c028cfb commit 6f15d6b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

files/etc/apache2.webserver.ext/ports.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# /etc/apache2/sites-enabled/000-default.conf
44

55
Listen 80
6+
#Listen 3128 # for spice and VNC TCP streams
67

78
<IfModule ssl_module>
89
Listen 443

files/etc/apache2.webserver.ext/sites-enabled/2-pve.conf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,12 @@
5858

5959
</Location>
6060

61+
# FIXME: we don't proxy any spice or VNC connections yet...
62+
# We really would be a lot better off doing this in nginx:
63+
# https://forum.proxmox.com/threads/nginx-reverse-proxy-for-spice.89108/
64+
# or https://forum.proxmox.com/threads/spice-viewer-with-reverse-proxy.87475/
6165
<IfModule mod_proxy_balancer.c>
6266

63-
ProxyPass "/" "balancer://pvecluster/" stickysession=JSESSIONID|jsessionid nofailover=On
6467
<Proxy "balancer://pvecluster">
6568
BalancerMember "https://pve1:8006"
6669
BalancerMember "https://pve2:8006" loadfactor=2
@@ -85,8 +88,11 @@
8588
SSLProxyCheckPeerName off
8689
SSLProxyCheckPeerExpire off
8790

88-
ProxyPass "/" "balancer://proxmox/"
89-
ProxyPassReverse "/" "balancer://proxmox/"
91+
# a lot of this config came
92+
# from https://forum.proxmox.com/threads/config-dump-apache-load-balancer-fail-over-and-reverse-proxy.131217/
93+
# but some straight from https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxyrequests
94+
ProxyPass "/" "balancer://pvecluster/" stickysession=JSESSIONID|jsessionid nofailover=On
95+
ProxyPassReverse "/" "balancer://pvecluster/"
9096

9197
</IfModule>
9298

0 commit comments

Comments
 (0)