Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32071fb

Browse files
authored
fix download redirects to match previous behavior (python#2393)
1 parent95304aa commit32071fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎config/nginx.conf.erb

Lines changed: 4 additions & 4 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp