[CentOS-mirror] How to redirect yum requests to another domain

Sat Jul 4 16:03:29 UTC 2015
mirrors <mirrors at cmdgy.com>

What's more, please whitelist our new IP addresses:
202.202.1.140
222.198.155.159
(The old 222.198.128.220 will still be used)
Thank you.
 
 
------------------ Original ------------------
From: "mirrors"; 
Date: 2015年7月4日(星期六) 晚上9:50
To: "centos-mirror"; 
Subject: [CentOS-mirror] How to redirect yum requests to another domain

 
Hi, everyone

I'm trying to redirect requests to another server.
While using conf below(in Nginx):

        location ~* ^/(centos) {
        rewrite ^/(.*)$ http://b.mirrors.lanunion.org/$1 redirect;
        }

I got an error like this:
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
http://mirrors.cqu.edu.cn/centos/7/os/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 301 - Moved Permanently

What can I do to achieve this?

Many thanks.
Tan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20150705/e29ea9f9/attachment-0006.html>