Comment 20 for bug 1381961

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/226464
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=40c3942c12d1dd2c826d836987616838a73a64a1
Submitter: Jenkins
Branch: master

commit 40c3942c12d1dd2c826d836987616838a73a64a1
Author: Julien Danjou <email address hidden>
Date: Mon Sep 21 17:27:07 2015 +0200

    wsgi: fix base_url finding

    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:

      HTTP_HOST
      SERVER_NAME
      SERVER_PORT
      SCRIPT_NAME

    Closes-Bug: #1381961
    Change-Id: I111c206a8a751ed117c6869f55f8236b29ab88a2