You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

<IfModule mod_ssl.c>
<VirtualHost *:6088>
ServerName vnc.swarmlab.io
SSLEngine On
SSLProxyEngine on
#SSLCertificateChainFile /opt/ssl/fullchain.pem
SSLCertificateFile /etc/apache2/cert/apache-selfsigned.crt
SSLCertificateKeyFile /etc/apache2/cert/apache-selfsigned.key
ErrorLog /var/log/apache2/vnc.log
CustomLog /var/log/apache2/vnc-custom.log combined
#ProxyRequests Off
#AllowEncodedSlashes NoDecode
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
#SSLProxyCheckPeerExpire off
ProxyPreserveHost On
ProxyRequests off
#AllowEncodedSlashes NoDecode
# RewriteEngine On
<Location />
ProxyPass http://127.0.0.1:6080/
ProxyPassReverse http://127.0.0.1:6080/
</Location>
<LocationMatch ^/(api2/json/nodes/[^\/]+/[^\/]+/[^\/]+/vncwebsocket.*)$>
ProxyPass wss://127.0.0.1:6080/$1 retry=0
</LocationMatch>
<Location /websockify>
ProxyPass ws://127.0.0.1:6080
ProxyPassReverse ws://127.0.0.1:6080
</Location>
<LocationMatch ^/(api2/json/nodes/[^\/]+/vncwebsocket.*)$>
ProxyPass wss://127.0.0.1:6080/$1 retry=0
</LocationMatch>
</VirtualHost>
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet