Public bug reported: When Glance is deployed behind SSL terminating proxy, for example, as https://cloud.example.com/image the href returned in version doc is missing the vhost - https://cloud.example.com/v2
How to reproduce: 1. Run Glance behind proxy with vhost as https://cloud.example.com/image and pass host, X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Prefix headers 2. Remove DEFAULT/public_endpoint option from the config 3. Enable HTTPProxyToWSGI: oslo_middleware/enable_proxy_headers_parsing=True 4. curl https://cloud.example.com/image Actual result: https://cloud.example.com/v2/ in all hrefs Expected result: https://cloud.example.com/image/v2/ in all hrefs Glance version: Queens ** Affects: glance Importance: Undecided Status: New ** Description changed: When Glance is deployed behind SSL terminating proxy, for example, as https://cloud.example.com/image the href returned in version doc is missing the vhost - https://cloud.example.com/v2 How to reproduce: 1. Run Glance behind proxy with vhost as https://cloud.example.com/image and pass host, X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Prefix headers 2. Remove DEFAULT/public_endpoint option from the config 3. Enable HTTPProxyToWSGI: oslo_middleware/enable_proxy_headers_parsing=True 4. curl https://cloud.example.com/image Actual result: https://cloud.example.com/v2/ in all hrefs Expected result: https://cloud.example.com/image/v2/ in all hrefs + + Glance version: Queens -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to Glance. https://bugs.launchpad.net/bugs/1823703 Title: Wrong version URL when Glance is deployed behind proxy with vhost Status in Glance: New Bug description: When Glance is deployed behind SSL terminating proxy, for example, as https://cloud.example.com/image the href returned in version doc is missing the vhost - https://cloud.example.com/v2 How to reproduce: 1. Run Glance behind proxy with vhost as https://cloud.example.com/image and pass host, X-Forwarded-For, X-Forwarded-Proto, X-Forwarded-Prefix headers 2. Remove DEFAULT/public_endpoint option from the config 3. Enable HTTPProxyToWSGI: oslo_middleware/enable_proxy_headers_parsing=True 4. curl https://cloud.example.com/image Actual result: https://cloud.example.com/v2/ in all hrefs Expected result: https://cloud.example.com/image/v2/ in all hrefs Glance version: Queens To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1823703/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp