Skip to content

Commit

Permalink
Fixes #37761 - Allow rewrites needed for cockpit integration
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed Aug 22, 2024
1 parent 26f9bef commit b656ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cockpit-apache-ssl.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
</Location>

0 comments on commit b656ac7

Please sign in to comment.