From 64d40dec86b013972b2983c00c3ed42fd9261cd2 Mon Sep 17 00:00:00 2001 From: Dominik Lindner Date: Thu, 21 Mar 2024 15:38:37 +0000 Subject: [PATCH] Add redirects for idr0138 and idro0158 --- ansible/group_vars/proxy-hosts.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ansible/group_vars/proxy-hosts.yml b/ansible/group_vars/proxy-hosts.yml index 63ecb95c..12ecb094 100644 --- a/ansible/group_vars/proxy-hosts.yml +++ b/ansible/group_vars/proxy-hosts.yml @@ -306,8 +306,10 @@ _nginx_proxy_sites: nginx_proxy_additional_directives: - "add_header Access-Control-Allow-Origin $allow_origin" # Study redirects - # - "if ($request_uri ~ /search/\\?query=Name:(?idr0)?134) { - # return 302 /about/download.html;}" + - "if ($request_uri ~ /search/\\?query=Name:(?idr0)?138) { + return 302 /about/download.html;}" + - "if ($request_uri ~ /search/\\?query=Name:(?idr0)?158) { + return 302 /about/download.html;}" # This is a duplicate of the main OMERO.web proxy configuration, but with # cache-busting: