Fix on vhost config
added rewrite rule to pass the HTTP auth header to web app Change-Id: I62f367f55aecf35eccbf2e10f7626f06843efc69
This commit is contained in:
parent
93b89568da
commit
5efa3a5928
|
@ -35,6 +35,9 @@
|
|||
RewriteEngine on
|
||||
RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("openstackid::vhost_name") %>
|
||||
RewriteRule ^.*$ <%= scope.lookupvar("openstackid::canonicalweburl") %>
|
||||
# send basic auth header
|
||||
RewriteCond %{HTTP:Authorization} ^(.*)
|
||||
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
|
||||
|
||||
DocumentRoot <%= @docroot %>
|
||||
<Directory <%= @docroot %>/>
|
||||
|
|
Loading…
Reference in New Issue