diff --git a/hydra/modules/sysadmin/nginx.scm b/hydra/modules/sysadmin/nginx.scm index 3c3456d..0a8b1a8 100644 --- a/hydra/modules/sysadmin/nginx.scm +++ b/hydra/modules/sysadmin/nginx.scm @@ -75,6 +75,13 @@ synonymous IETF language tags that should be mapped to the same $lang." (define guix.gnu.org-redirect-locations (list + (nginx-location-configuration + (uri "~ /packages/.*") + (body (list "return 301 https://packages.guix.gnu.org"))) + (nginx-location-configuration + (uri "~ /([^/]+)/packages/.*") + (body (list "return 301 https://packages.guix.gnu.org"))) + ;; Short URL for the installation script (redirect "/install.sh" "https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh") ;; What follows is a list of redirects for URLs that used to be