ServerName HOSTNAME.dsv.su.se
Redirect / https://HOSTNAME.dsv.su.se
ServerName HOSTNAME.dsv.su.se
SSLEngine on
DocumentRoot /var/www/proxmox-web-portal
Require all granted
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /vnc ws://localhost:3000/vnc
ProxyPassReverse /vnc ws://localhost:3000/vnc
RewriteEngine on
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://localhost:3000/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket [NC]
RewriteRule /(.*) http://localhost:3000/$1 [P,L]