summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSebastian Marcet <smarcet@gmail.com>2016-04-05 14:23:36 -0300
committerSebastian Marcet <smarcet@gmail.com>2016-04-05 14:23:36 -0300
commit5efa3a5928fd16fb58f41d76961ed09952b851db (patch)
treead1be04da121efe6b05df0d5eaaa7618969bdb18 /templates
parent93b89568da1d15467308ea923f28721c3c7c66f0 (diff)
Fix on vhost config
added rewrite rule to pass the HTTP auth header to web app Change-Id: I62f367f55aecf35eccbf2e10f7626f06843efc69
Notes
Notes (review): Code-Review+1: Avinash Raghavendra <avinash.raghavendra@ericsson.com> Code-Review+1: Anil Vashistha <anil.vashistha@ericsson.com> Code-Review+1: Kshitiz Arora <kshitiz.arora@ericsson.com> Code-Review+2: Jeremy Stanley <fungi@yuggoth.org> Workflow+1: Jeremy Stanley <fungi@yuggoth.org> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 05 Apr 2016 18:13:07 +0000 Reviewed-on: https://review.openstack.org/301838 Project: openstack-infra/puppet-openstackid Branch: refs/heads/master
Diffstat (limited to 'templates')
-rw-r--r--templates/vhost.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/vhost.erb b/templates/vhost.erb
index 46a0d29..07045e7 100644
--- a/templates/vhost.erb
+++ b/templates/vhost.erb
@@ -35,6 +35,9 @@
35 RewriteEngine on 35 RewriteEngine on
36 RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("openstackid::vhost_name") %> 36 RewriteCond %{HTTP_HOST} !<%= scope.lookupvar("openstackid::vhost_name") %>
37 RewriteRule ^.*$ <%= scope.lookupvar("openstackid::canonicalweburl") %> 37 RewriteRule ^.*$ <%= scope.lookupvar("openstackid::canonicalweburl") %>
38 # send basic auth header
39 RewriteCond %{HTTP:Authorization} ^(.*)
40 RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
38 41
39 DocumentRoot <%= @docroot %> 42 DocumentRoot <%= @docroot %>
40 <Directory <%= @docroot %>/> 43 <Directory <%= @docroot %>/>