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/; }