From 1a01fce6e8f9e63c5d961ef0ffbcdd7f355eec53 Mon Sep 17 00:00:00 2001 From: Ee Durbin Date: Tue, 5 Mar 2024 15:10:36 -0500 Subject: [PATCH] fix download redirects to match previous behavior --- config/nginx.conf.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/nginx.conf.erb b/config/nginx.conf.erb index 42bbf94cc..9718642f5 100644 --- a/config/nginx.conf.erb +++ b/config/nginx.conf.erb @@ -208,19 +208,19 @@ http { return 301 https://www.python.org/download/windows/; } - location /download/ { + location ~ ^/download/$ { return 301 https://www.python.org/downloads/; } - location /download/source/ { + location ~ ^/download/source/$ { return 301 https://www.python.org/downloads/source/; } - location /download/mac/ { + location ~ ^/download/mac/$ { return 301 https://www.python.org/downloads/macos/; } - location /download/windows/ { + location ~ ^/download/windows/$ { return 301 https://www.python.org/downloads/windows/; }