Re: [PATCH] handle Amazon EC2 client yum misconfiguration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 May 2010, Matt Domsch wrote:

> EC2 clients with malformed yum URLs are hitting us a lot.  Kill those
> requests at the proxy servers to keep them from hitting MM.
>
> diff --git a/modules/mirrormanager/templates/mirrormanager-mirrorlist.conf.erb b/modules/mirrormanager/templates/mirrormanager-mirrorlist.conf.erb
> index bd576ce..3b7fdcc 100644
> --- a/modules/mirrormanager/templates/mirrormanager-mirrorlist.conf.erb
> +++ b/modules/mirrormanager/templates/mirrormanager-mirrorlist.conf.erb
> @@ -13,6 +13,9 @@ RequestHeader set CP-Location /mirrormanager
>  Alias /releases.txt /srv/web/mirrors/releases.txt
>
>  RewriteEngine On
> +# BEGIN hack for misconfigured Amazon EC2 clients
> +RewriteRule ^/mirrorlist?repo=epel-5&arch=\$basea\$ - [F]
> +# END hack
>  RewriteRule ^/publiclist(.*) <%= proxyurl %>/publiclist/$1 [P,L]
>  RewriteRule ^/mirrorlist(.*) <%= proxyurl %>/mirrorlist$1 [P,L]
>  RewriteRule ^/metalink(.*) <%= proxyurl %>/metalink$1 [P,L]
>

+1.   Down with basea!

	-Mike
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux