From 7216c8838b0804eca05f44ca4ac8a33f7d9fec73 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 4 Aug 2020 19:06:44 +0200 Subject: [PATCH] nominatim: correctly forward to https --- 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 f42c60f3b..2c22ae850 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -172,7 +172,7 @@ server { fastcgi_param PATH_INFO "$nominatim_path_info"; fastcgi_param SCRIPT_FILENAME "$document_root/$nominatim_script_name"; if ($forward_to_ui) { - rewrite ^(/[^/]*) http://$host/ui$1.html redirect; + rewrite ^(/[^/]*) https://$host/ui$1.html redirect; } } @@ -192,7 +192,7 @@ server { fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; if ($forward_to_ui) { - rewrite (.*).php http://$host/ui$1.html redirect; + rewrite (.*).php https://$host/ui$1.html redirect; } } } -- 2.45.1