diff --git a/templates/cockpit-apache-ssl.conf.erb b/templates/cockpit-apache-ssl.conf.erb index 91fe9cad..192657b3 100644 --- a/templates/cockpit-apache-ssl.conf.erb +++ b/templates/cockpit-apache-ssl.conf.erb @@ -4,8 +4,8 @@ ProxyPreserveHost On RewriteEngine On - RewriteCond %{HTTP:Upgrade} =websocket [NC] + RewriteCond %{HTTP:Upgrade} =websocket [NC,UnsafeAllow3F] RewriteRule <%= @cockpit_path %>/(.*) ws://<%= @cockpit_host %>:<%= @cockpit_port %><%= @cockpit_path %>/$1 [P] - RewriteCond %{HTTP:Upgrade} !=websocket [NC] + RewriteCond %{HTTP:Upgrade} !=websocket [NC,UnsafeAllow3F] RewriteRule <%= @cockpit_path %>/(.*) http://<%= @cockpit_host %>:<%= @cockpit_port %><%= @cockpit_path %>/$1 [P]