From 1ee4480bffaf0278da6cb0bf75ad84b08c732ee9 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 26 Dec 2022 03:47:58 +0100 Subject: [PATCH] Improved home.giorgioravera.it --- sites-available/home.giorgioravera.it.conf | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sites-available/home.giorgioravera.it.conf b/sites-available/home.giorgioravera.it.conf index f9acadb..9e192bd 100644 --- a/sites-available/home.giorgioravera.it.conf +++ b/sites-available/home.giorgioravera.it.conf @@ -14,20 +14,16 @@ #ProxyPass / http://home.giorgioravera.it:8123/ #ProxyPassReverse / http://home.giorgioravera.it:8123/ - RewriteEngine on - #RewriteCond %{HTTP:Upgrade} =websocket [NC] - #RewriteRule /(.*) ws://home.giorgioravera.it:8123/$1 [P,L] - #RewriteCond %{HTTP:Upgrade} !=websocket [NC] - #RewriteRule /(.*) http://home.giorgioravera.it:8123/$1 [P,L] - SSLProxyEngine on ProxyPass / https://home.giorgioravera.it/ ProxyPassReverse / https://home.giorgioravera.it/ RewriteEngine on - RewriteCond %{HTTP:Upgrade} =websocket [NC] + #RewriteCond %{HTTP:Upgrade} =websocket [NC] + #RewriteRule /(.*) ws://home.giorgioravera.it:8123/$1 [P,L] RewriteRule /(.*) wss://home.giorgioravera.it/$1 [P,L] - RewriteCond %{HTTP:Upgrade} !=websocket [NC] + #RewriteCond %{HTTP:Upgrade} !=websocket [NC] + #RewriteRule /(.*) http://home.giorgioravera.it:8123/$1 [P,L] RewriteRule /(.*) https://home.giorgioravera.it/$1 [P,L] # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, -- 2.47.3