New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Debian Repo Redirect
First off I am not thinking of moving or closing any of my mirrors.
Is it possible to redirect a repo via something like a temp-move / perm-move in http?
server { location /oldrepo { rewrite ^/(.*) http://cdn.content-network.net/mirror/newmirror/$1 permanent; } }
Comments
Can't see why not. Though you'll need to make your location an RE.
Maybe something like:
Don't understand the term RE in this?
As of right now, Apt doesn't appear to follow http redirects
His RE term means regular expression.
EDIT: Gah... Google's datestamp on the article is wrong... it seems to be fixed.
Sorry. RE = Regular Expression.
location /oldrepo
will match only that exact location:location ^~ /oldrepo
will match anything starting with "/oldrepo", e.g.Ohh ok, thanks