Commit 680f276a authored by Evilham's avatar Evilham

Improve /os/packages redir

parent 2973239d
......@@ -35,9 +35,12 @@ location ~ ^/d1conf(|/)$ {
}
# Redirect legacy package listing to pkginfo.devuan.org
location ~ /os/packages/(.*) {
location ~ ^/os/packages/(.+)$ {
return 301 https://pkginfo.devuan.org/cgi-bin/d1pkgweb-query?search=$1;
}
location ~ ^/os/packages(|/)$ {
return 301 https://pkginfo.devuan.org;
}
# Mirror: change 'en' with your language
# Localize error pages, English default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment