commit 54afee60f46d597aeee2982b1a433b9f91cc3cea
parent a0779a87484c55217a6e421187def904c174189c
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Mon, 26 Nov 2018 11:12:35 +0100
nginx: strip the "/service" part from auditor URIs.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/etc/nginx/sites-enabled/test.site b/etc/nginx/sites-enabled/test.site
@@ -66,6 +66,7 @@ server {
proxy_pass http://unix:/home/test-blue/sockets/auditor.http;
}
location /service {
+ rewrite "^/service/(.*)" /$1 break;
proxy_pass http://unix:/home/test/sockets/auditor.http:/;
}