Browse Source

Fix on vhost config

added rewrite rule to pass the HTTP auth header to web app

Change-Id: I62f367f55aecf35eccbf2e10f7626f06843efc69
changes/38/301838/1
Sebastian Marcet 3 years ago
parent
commit
5efa3a5928
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      templates/vhost.erb

+ 3
- 0
templates/vhost.erb View File

@@ -35,6 +35,9 @@
35 35
   RewriteEngine on
36 36
   RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("openstackid::vhost_name") %>
37 37
   RewriteRule ^.*$ <%= scope.lookupvar("openstackid::canonicalweburl") %>
38
+  # send basic auth header
39
+  RewriteCond %{HTTP:Authorization} ^(.*)
40
+  RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
38 41
 
39 42
   DocumentRoot <%= @docroot %>
40 43
   <Directory <%= @docroot %>/>

Loading…
Cancel
Save