32 lines
829 B
Plaintext
32 lines
829 B
Plaintext
<VirtualHost *:80>
|
|
ServerName HOSTNAME.dsv.su.se
|
|
Redirect / https://HOSTNAME.dsv.su.se
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName HOSTNAME.dsv.su.se
|
|
SSLEngine on
|
|
|
|
DocumentRoot /var/www/proxmox-web-portal
|
|
<Directory /var/www/proxmox-web-portal>
|
|
Require all granted
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride All
|
|
</Directory>
|
|
|
|
<Location />
|
|
Require all granted
|
|
</Location>
|
|
|
|
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]
|