27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
RewriteEngine On
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} "lftp"
|
|
RewriteRule ^.*$ https://fedoraproject.org/wiki/Infrastructure/Mirroring#Tools_to_avoid [R,L]
|
|
|
|
RewriteRule ^/$ /pub [R=302,L]
|
|
|
|
|
|
# This is to deal with a broken ostree (actually libcurl) that doesn't work well with ostree
|
|
# The only remaining image with this bug is F27 Fedora Atomic Workstation
|
|
# Can be nuked after F28 GA
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP_USER_AGENT} ^ostree$
|
|
RewriteRule ^/ostree/27/(.*)$ http://brokenostreekojipkgs.fedoraproject.org/atomic/repo/$1 [L,R=302]
|
|
|
|
|
|
RedirectMatch 302 ^/pub/fedora/linux/atomic/(.*$) https://kojipkgs.fedoraproject.org/atomic/$1
|
|
RedirectMatch 302 ^/pub/fedora/linux/atomic https://kojipkgs.fedoraproject.org/atomic/
|
|
Redirect 302 "/ostree/27" "https://kojipkgs.fedoraproject.org/atomic/repo"
|
|
Redirect 302 "/pub/ostree/27" "https://kojipkgs.fedoraproject.org/atomic/repo"
|
|
|
|
#RedirectMatch 302 ^/atomic/repo/deltas/(.*) https://d14lrfjen188b1.cloudfront.net/$1
|
|
RedirectMatch 302 ^/atomic/repo/objects/(.*) https://d2os45suu8yck8.cloudfront.net/$1
|
|
RedirectMatch 302 ^/atomic/repo/(.*) https://kojipkgs.fedoraproject.org/atomic/repo/$1
|
|
|
|
RedirectMatch 302 ^/iot/repo/objects/(.*) https://d35xkejx7yn5rc.cloudfront.net/$1
|
|
RedirectMatch 302 ^/iot/repo/(.*) https://kojipkgs.fedoraproject.org/compose/iot/repo/$1
|