Skip to content

Commit 995d251

Browse files
committed
followup on 2399
- Repair syntax for redirects - Remove now extraneous redirect
1 parent 55b9dbc commit 995d251

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

config/nginx.conf

+5-9
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ http {
5050
return 301 http://www.python.org/psf;
5151
}
5252

53-
location /psf/codeofconduct {
54-
return 301 /psf/conduct;
55-
}
56-
5753
location /topics/xml {
5854
return 301 http://pyxml.sourceforge.net/topics;
5955
}
@@ -314,19 +310,19 @@ http {
314310
return 301 https://python.org/blogs/;
315311
}
316312

317-
location ^/psf/archive/codeofconduct/?$ {
313+
location ~ ^/psf/archive/codeofconduct/?$ {
318314
return 302 https://policies.python.org/python.org/code-of-conduct/;
319315
}
320-
location ^/psf/codeofconduct/?$ {
316+
location ~ ^/psf/codeofconduct/?$ {
321317
return 302 https://policies.python.org/python.org/code-of-conduct/;
322318
}
323-
location ^/psf/conduct/?$ {
319+
location ~ ^/psf/conduct/?$ {
324320
return 302 https://policies.python.org/python.org/code-of-conduct/;
325321
}
326-
location ^/psf/conduct/enforcement/?$ {
322+
location ~ ^/psf/conduct/enforcement/?$ {
327323
return 302 https://policies.python.org/python.org/code-of-conduct/Enforcement-Procedures/;
328324
}
329-
location ^/psf/conduct/reporting/?$ {
325+
location ~ ^/psf/conduct/reporting/?$ {
330326
return 302 https://policies.python.org/python.org/code-of-conduct/Procedures-for-Reporting-Incidents/;
331327
}
332328

0 commit comments

Comments
 (0)