The current wsgi.Application.base_url() function does not work correctly
if Keystone runs on something like "http://1.2.3.4/identity" which is now
a default in devstack.
This patch fixes that by using wsgiref.util to parse environment
variable set in WSGI mode to find the real base url and returns the
correct URL. The following environment variables will be used to
produce the effective base url:
Reviewed: https:/ /review. openstack. org/226464 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=40c3942c12d 1dd2c826d836987 616838a73a64a1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 40c3942c12d1dd2 c826d8369876168 38a73a64a1
Author: Julien Danjou <email address hidden>
Date: Mon Sep 21 17:27:07 2015 +0200
wsgi: fix base_url finding
The current wsgi.Applicatio n.base_ url() function does not work correctly 1.2.3.4/ identity" which is now
if Keystone runs on something like "http://
a default in devstack.
This patch fixes that by using wsgiref.util to parse environment
variable set in WSGI mode to find the real base url and returns the
correct URL. The following environment variables will be used to
produce the effective base url:
HTTP_HOST
SERVER_NAME
SERVER_PORT
SCRIPT_NAME
Closes-Bug: #1381961 d117c6869f55f82 36b29ab88a2
Change-Id: I111c206a8a751e