Fix on vhost config

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

Change-Id: I62f367f55aecf35eccbf2e10f7626f06843efc69
This commit is contained in:
Sebastian Marcet 2016-04-05 14:23:36 -03:00
parent 93b89568da
commit 5efa3a5928
1 changed files with 3 additions and 0 deletions

View File

@ -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 %>/>