From: David Prévot Date: Wed, 27 Apr 2011 21:08:49 +0000 (-0400) Subject: Offer a link to DSA without knowing year (Closes: #474730) X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=a45899745c5eb593d8c8fcf695d8e58bfbfde148;p=mirror%2Fdsa-puppet.git Offer a link to DSA without knowing year (Closes: #474730) Signed-off-by: Simon Paillard --- diff --git a/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org b/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org index 3a028f159..fbde2d2f4 100644 --- a/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org +++ b/modules/apache2/files/common/etc/apache2/sites-available/www.debian.org @@ -167,4 +167,8 @@ RedirectPermanent /releases/5.0 /releases/lenny RedirectPermanent /releases/6.0 /releases/squeeze RedirectPermanent /releases/unstable /releases/sid + +# Offer a Redirect to DSA without knowing year #474730 + RewriteMap dsa txt:/srv/www.debian.org/www/security/map-dsa.txt + RewriteRule ^/security/dsa-(\d+)(\..*)? /security/${dsa:$1}$2 [R=301]