From 5eea0ca8637917c06b2c75d9c2bede67f52bbfd8 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 4 Nov 2021 17:56:58 +0100 Subject: [PATCH] Move the rewrite rule. --- templates/nginx.default.conf.j2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/nginx.default.conf.j2 b/templates/nginx.default.conf.j2 index 6c1b877..7ea4f5f 100644 --- a/templates/nginx.default.conf.j2 +++ b/templates/nginx.default.conf.j2 @@ -46,9 +46,6 @@ server { location /_d4sauth { js_content pep.enforce; - if (!-e $request_filename){ - rewrite ^(.+)$ / last; - } } location @backend { @@ -64,6 +61,7 @@ server { proxy_set_header Authorization "Bearer $auth_token"; proxy_set_header remote_user "$remote_user"; proxy_pass http://_inception-server; + rewrite ^/_d4sauth(.+)$ / last; } location /gcube_user_info {