From 6cc7222502236b62044049e60eeb04ca683a3ae3 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Fri, 24 Apr 2020 22:15:12 +0200 Subject: [PATCH] nominatim: fix nginx variable name --- cookbooks/nominatim/templates/default/nginx.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index 1a5fa0c98..7790270b7 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -98,8 +98,8 @@ server { } location / { - set anyid = $http_referer$http_user_agent$email_id; - if (anyid = "") + set $anyid = $http_referer$http_user_agent$email_id; + if ($anyid = "") { return 403; } if ($blocked_user_agent ~ ^2$) { return 403; } -- 2.39.5