Remove trailing slash in nginx config

The nginx configuration file passes along traffic to the placement
API if the URI is '/placement/' but the service is registered with
keystone as just '/placement' (no trailing slash). This causes
nginx to send back the default page when nova services try to talk
to the placement API.

This patch fixes the nginx configuration to match the URI for the
registered service.

Closes-Bug: 1689824
Change-Id: I309730a6daa8c3ea15fca78ab9ce910383019869
This commit is contained in:
Major Hayden 2017-05-10 09:53:48 -04:00
parent 9ae3404464
commit b3c6035b7a
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1

View File

@ -10,7 +10,7 @@ server {
access_log /var/log/nova/nova-placement-api-access.log custom;
error_log /var/log/nova/nova-placement-api-error.log info;
location /placement/ {
location /placement {
try_files $uri @nova-placement-api;
}