From 42cef50e5f017b9b1964eb75639557b1afdf4c4a Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Mon, 5 Sep 2016 16:22:45 +0100 Subject: [PATCH] Fix nginx SCRIPT_NAME uwsgi_param The SCRIPT_NAME uwsgi_param is passed to the client resulting in errors such as: UnknownConnectionError: Unexpected exception for http://10.1.1.101:5000keystone-wsgi-public/v3/auth/tokens: Failed to parse: 10.1.1.101:5000keystone-wsgi-public We should default this to a blank string to ensure this works appropriately. Change-Id: I3da36f8e2281eefdbad903d438ffd93ddd2f5071 --- templates/keystone_nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/keystone_nginx.conf.j2 b/templates/keystone_nginx.conf.j2 index e106ed48..94d4d64e 100644 --- a/templates/keystone_nginx.conf.j2 +++ b/templates/keystone_nginx.conf.j2 @@ -29,6 +29,6 @@ server { location @yourapplication { include uwsgi_params; uwsgi_pass 127.0.0.1:{{ keystone_uwsgi_ports[item]['socket'] }}; - uwsgi_param SCRIPT_NAME {{ item }}; + uwsgi_param SCRIPT_NAME ''; } }