<VirtualHost *:80> #RewriteLog "/root/rewrite.log" #RewriteLogLevel 10 RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] RewriteRule ^/(.*) https://%{HTTP_HOST}:8006/$1 [L,R] </VirtualHost> <VirtualHost *:443> SSLEngine on SSLProtocol all -SSLv2 SSLCertificateFile /etc/pve/local/pve-ssl.pem SSLCertificateKeyFile /etc/pve/local/pve-ssl.key RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] RewriteRule ^/(.*) https://%{HTTP_HOST}:8006/$1 [L,R] </VirtualHost>