> Hi, > > This should fix https://pagure.io/fedora-infrastructure/issue/6396. > Patch is big, but I generated the actual config file with the input > provided, and then: cat langredirs | sed -e 's./$..' | sed -E > 's/(.*)/Redirect "\/\1" > "https:\/\/docs-old.fedoraproject.org\/\1"/' should these include the "permanent" keyword in order to make them 301s and not 302s? Thanks, bex > > Regards, > Patrick > > > > commit 65aafdc9c7303685cdec332f4ec09f44199a72bf (HEAD -> master) > Author: Patrick Uiterwijk <patrick(a)puiterwijk.org> > Date: Wed Sep 27 17:14:07 2017 +0200 > > Redirect old docs urls to docs-old > > Signed-off-by: Patrick Uiterwijk <patrick(a)puiterwijk.org> > > diff --git a/roles/fedora-docs/proxy/files/fedora-docs-old.conf > b/roles/fedora-docs/proxy/files/fedora-docs-old.conf > new file mode 100644 > index 000000000..8157284b6 > --- /dev/null > +++ b/roles/fedora-docs/proxy/files/fedora-docs-old.conf > @@ -0,0 +1,124 @@ > +Redirect "/af" "https://docs-old.fedoraproject.org/af" > +Redirect "/af_ZA" "https://docs-old.fedoraproject.org/af_ZA" > +Redirect "/aln-AL" "https://docs-old.fedoraproject.org/aln-AL" > +Redirect "/am" "https://docs-old.fedoraproject.org/am" > +Redirect "/ar-SA" "https://docs-old.fedoraproject.org/ar-SA" > +Redirect "/as-IN" "https://docs-old.fedoraproject.org/as-IN" > +Redirect "/ast-ES" "https://docs-old.fedoraproject.org/ast-ES" > +Redirect "/az" "https://docs-old.fedoraproject.org/az" > +Redirect "/bal-PK" "https://docs-old.fedoraproject.org/bal-PK" > +Redirect "/be" "https://docs-old.fedoraproject.org/be" > +Redirect "/bg-BG" "https://docs-old.fedoraproject.org/bg-BG" > +Redirect "/bn-BD" "https://docs-old.fedoraproject.org/bn-BD" > +Redirect "/bn-IN" "https://docs-old.fedoraproject.org/bn-IN" > +Redirect "/bo" "https://docs-old.fedoraproject.org/bo" > +Redirect "/br" "https://docs-old.fedoraproject.org/br" > +Redirect "/brx" "https://docs-old.fedoraproject.org/brx" > +Redirect "/bs-BA" "https://docs-old.fedoraproject.org/bs-BA" > +Redirect "/ca-ES" "https://docs-old.fedoraproject.org/ca-ES" > +Redirect "/cs_CZ" "https://docs-old.fedoraproject.org/cs_CZ" > +Redirect "/cs-CZ" "https://docs-old.fedoraproject.org/cs-CZ" > +Redirect "/cy" "https://docs-old.fedoraproject.org/cy" > +Redirect "/da-DK" "https://docs-old.fedoraproject.org/da-DK" > +Redirect "/de-CH" "https://docs-old.fedoraproject.org/de-CH" > +Redirect "/de-DE" "https://docs-old.fedoraproject.org/de-DE" > +Redirect "/dz" "https://docs-old.fedoraproject.org/dz" > +Redirect "/el-GR" "https://docs-old.fedoraproject.org/el-GR" > +Redirect "/en-GB" "https://docs-old.fedoraproject.org/en-GB" > +Redirect "/en_US" "https://docs-old.fedoraproject.org/en_US" > +Redirect "/en-US" "https://docs-old.fedoraproject.org/en-US" > +Redirect "/eo" "https://docs-old.fedoraproject.org/eo" > +Redirect "/es_ES" "https://docs-old.fedoraproject.org/es_ES" > +Redirect "/es-ES" "https://docs-old.fedoraproject.org/es-ES" > +Redirect "/et-EE" "https://docs-old.fedoraproject.org/et-EE" > +Redirect "/eu_ES" "https://docs-old.fedoraproject.org/eu_ES" > +Redirect "/eu-ES" "https://docs-old.fedoraproject.org/eu-ES" > +Redirect "/fa_IR" "https://docs-old.fedoraproject.org/fa_IR" > +Redirect "/fa-IR" "https://docs-old.fedoraproject.org/fa-IR" > +Redirect "/fi-FI" "https://docs-old.fedoraproject.org/fi-FI" > +Redirect "/fr-FR" "https://docs-old.fedoraproject.org/fr-FR" > +Redirect "/ga" "https://docs-old.fedoraproject.org/ga" > +Redirect "/gl-ES" "https://docs-old.fedoraproject.org/gl-ES" > +Redirect "/gu-IN" "https://docs-old.fedoraproject.org/gu-IN" > +Redirect "/he-IL" "https://docs-old.fedoraproject.org/he-IL" > +Redirect "/hi-IN" "https://docs-old.fedoraproject.org/hi-IN" > +Redirect "/hr_HR" "https://docs-old.fedoraproject.org/hr_HR" > +Redirect "/hr-HR" "https://docs-old.fedoraproject.org/hr-HR" > +Redirect "/hu-HU" "https://docs-old.fedoraproject.org/hu-HU" > +Redirect "/hy" "https://docs-old.fedoraproject.org/hy" > +Redirect "/ia" "https://docs-old.fedoraproject.org/ia" > +Redirect "/id-ID" "https://docs-old.fedoraproject.org/id-ID" > +Redirect "/ilo" "https://docs-old.fedoraproject.org/ilo" > +Redirect "/images" "https://docs-old.fedoraproject.org/images" > +Redirect "/is-IS" "https://docs-old.fedoraproject.org/is-IS" > +Redirect "/it_IT" "https://docs-old.fedoraproject.org/it_IT" > +Redirect "/it-IT" "https://docs-old.fedoraproject.org/it-IT" > +Redirect "/ja_JP" "https://docs-old.fedoraproject.org/ja_JP" > +Redirect "/ja-JP" "https://docs-old.fedoraproject.org/ja-JP" > +Redirect "/ka" "https://docs-old.fedoraproject.org/ka" > +Redirect "/kk" "https://docs-old.fedoraproject.org/kk" > +Redirect "/km" "https://docs-old.fedoraproject.org/km" > +Redirect "/kn-IN" "https://docs-old.fedoraproject.org/kn-IN" > +Redirect "/ko-KR" "https://docs-old.fedoraproject.org/ko-KR" > +Redirect "/ks" "https://docs-old.fedoraproject.org/ks" > +Redirect "/ku" "https://docs-old.fedoraproject.org/ku" > +Redirect "/ky" "https://docs-old.fedoraproject.org/ky" > +Redirect "/la" "https://docs-old.fedoraproject.org/la" > +Redirect "/lo" "https://docs-old.fedoraproject.org/lo" > +Redirect "/lt-LT" "https://docs-old.fedoraproject.org/lt-LT" > +Redirect "/lv-LT" "https://docs-old.fedoraproject.org/lv-LT" > +Redirect "/lv-LV" "https://docs-old.fedoraproject.org/lv-LV" > +Redirect "/mai-IN" "https://docs-old.fedoraproject.org/mai-IN" > +Redirect "/mg" "https://docs-old.fedoraproject.org/mg" > +Redirect "/mk" "https://docs-old.fedoraproject.org/mk" > +Redirect "/ml-IN" "https://docs-old.fedoraproject.org/ml-IN" > +Redirect "/mn" "https://docs-old.fedoraproject.org/mn" > +Redirect "/mr-IN" "https://docs-old.fedoraproject.org/mr-IN" > +Redirect "/ms_MY" "https://docs-old.fedoraproject.org/ms_MY" > +Redirect "/ms-MY" "https://docs-old.fedoraproject.org/ms-MY" > +Redirect "/my" "https://docs-old.fedoraproject.org/my" > +Redirect "/nb-NO" "https://docs-old.fedoraproject.org/nb-NO" > +Redirect "/nds-DE" "https://docs-old.fedoraproject.org/nds-DE" > +Redirect "/ne" "https://docs-old.fedoraproject.org/ne" > +Redirect "/nl-NL" "https://docs-old.fedoraproject.org/nl-NL" > +Redirect "/nn-NO" "https://docs-old.fedoraproject.org/nn-NO" > +Redirect "/no" "https://docs-old.fedoraproject.org/no" > +Redirect "/nso" "https://docs-old.fedoraproject.org/nso" > +Redirect "/oldcontrib" > "https://docs-old.fedoraproject.org/oldcontrib" > +Redirect "/oldguides" "https://docs-old.fedoraproject.org/oldguides" > +Redirect "/oldmisc" "https://docs-old.fedoraproject.org/oldmisc" > +Redirect "/oldweb" "https://docs-old.fedoraproject.org/oldweb" > +Redirect "/or-IN" "https://docs-old.fedoraproject.org/or-IN" > +Redirect "/pa-IN" "https://docs-old.fedoraproject.org/pa-IN" > +Redirect "/pl-PL" "https://docs-old.fedoraproject.org/pl-PL" > +Redirect "/pt-BR" "https://docs-old.fedoraproject.org/pt-BR" > +Redirect "/pt-PT" "https://docs-old.fedoraproject.org/pt-PT" > +Redirect "/ro" "https://docs-old.fedoraproject.org/ro" > +Redirect "/ro-RO" "https://docs-old.fedoraproject.org/ro-RO" > +Redirect "/ru_RU" "https://docs-old.fedoraproject.org/ru_RU" > +Redirect "/ru-RU" "https://docs-old.fedoraproject.org/ru-RU" > +Redirect "/si-LK" "https://docs-old.fedoraproject.org/si-LK" > +Redirect "/sk-SK" "https://docs-old.fedoraproject.org/sk-SK" > +Redirect "/sl-SI" "https://docs-old.fedoraproject.org/sl-SI" > +Redirect "/sq-AL" "https://docs-old.fedoraproject.org/sq-AL" > +Redirect "/sr-Latn-RS" > "https://docs-old.fedoraproject.org/sr-Latn-RS" > +Redirect "/sr-RS" "https://docs-old.fedoraproject.org/sr-RS" > +Redirect "/sv-SE" "https://docs-old.fedoraproject.org/sv-SE" > +Redirect "/ta_IN" "https://docs-old.fedoraproject.org/ta_IN" > +Redirect "/ta-IN" "https://docs-old.fedoraproject.org/ta-IN" > +Redirect "/te-IN" "https://docs-old.fedoraproject.org/te-IN" > +Redirect "/tg-TJ" "https://docs-old.fedoraproject.org/tg-TJ" > +Redirect "/th" "https://docs-old.fedoraproject.org/th" > +Redirect "/th-TH" "https://docs-old.fedoraproject.org/th-TH" > +Redirect "/tl" "https://docs-old.fedoraproject.org/tl" > +Redirect "/tr-TR" "https://docs-old.fedoraproject.org/tr-TR" > +Redirect "/uk_UA" "https://docs-old.fedoraproject.org/uk_UA" > +Redirect "/uk-UA" "https://docs-old.fedoraproject.org/uk-UA" > +Redirect "/ur-PK" "https://docs-old.fedoraproject.org/ur-PK" > +Redirect "/vi-VN" "https://docs-old.fedoraproject.org/vi-VN" > +Redirect "/wo" "https://docs-old.fedoraproject.org/wo" > +Redirect "/xh" "https://docs-old.fedoraproject.org/xh" > +Redirect "/zh-CN" "https://docs-old.fedoraproject.org/zh-CN" > +Redirect "/zh-HK" "https://docs-old.fedoraproject.org/zh-HK" > +Redirect "/zh-TW" "https://docs-old.fedoraproject.org/zh-TW" > +Redirect "/zu" "https://docs-old.fedoraproject.org/zu" > diff --git a/roles/fedora-docs/proxy/tasks/main.yml > b/roles/fedora-docs/proxy/tasks/main.yml > index 99f58ce3f..311b4feac 100644 > --- a/roles/fedora-docs/proxy/tasks/main.yml > +++ b/roles/fedora-docs/proxy/tasks/main.yml > @@ -26,6 +26,7 @@ > owner=root group=root mode=0644 > with_items: > - fedora-docs.conf > + - fedora-docs-old.conf > notify: > - reload proxyhttpd > tags: > @@ -38,6 +39,7 @@ > owner=root group=root mode=0644 > with_items: > - fedora-docs.conf > + - fedora-docs-old.conf > notify: > - reload proxyhttpd > tags: _______________________________________________ infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx