Skip to content

Commit 1a01fce

Browse files
committed
fix download redirects to match previous behavior
1 parent 95304aa commit 1a01fce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

config/nginx.conf.erb

+4-4
Original file line numberDiff line numberDiff line change
@@ -208,19 +208,19 @@ http {
208208
return 301 https://www.python.org/download/windows/;
209209
}
210210

211-
location /download/ {
211+
location ~ ^/download/$ {
212212
return 301 https://www.python.org/downloads/;
213213
}
214214

215-
location /download/source/ {
215+
location ~ ^/download/source/$ {
216216
return 301 https://www.python.org/downloads/source/;
217217
}
218218

219-
location /download/mac/ {
219+
location ~ ^/download/mac/$ {
220220
return 301 https://www.python.org/downloads/macos/;
221221
}
222222

223-
location /download/windows/ {
223+
location ~ ^/download/windows/$ {
224224
return 301 https://www.python.org/downloads/windows/;
225225
}
226226

0 commit comments

Comments
 (0)