From a47f4915dcc057b8b57130886e009db9ca6afd44 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 10 Aug 2011 15:57:42 +0200 Subject: UPGRADING: Add note on backward compatible package URLs Thanks-to: Dave Reisner Thanks-to: Dan McGee Signed-off-by: Lukas Fleischer --- UPGRADING | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/UPGRADING b/UPGRADING index 331870e2..0f08ab9d 100644 --- a/UPGRADING +++ b/UPGRADING @@ -22,6 +22,23 @@ ALTER TABLE PackageDepends ADD INDEX (DepName); 6. Run the upload directory transform script ("scripts/uploadbuckets.sh") and rotate the converted directory structure into place. +7. In order to to provide backward compatible package URLs, enable mod_rewrite +and add the following to your Apache configuration (inside the "VirtualHost" +container or optionally create a ".htaccess" file in the upload directory): + +---- +RewriteEngine on +RewriteRule ^/packages/([^/]{1,2})([^/]*/(PKGBUILD|.*\.tar\.gz|))$ /packages/$1/$1$2 +---- + +The following equivalent rule can be used for lighttpd setups: + +---- +url.rewrite-once = ( "^/packages/([^/]{1,2})([^/]*/(PKGBUILD|.*\.tar\.gz|))$" => "/packages/$1/$1$2" ) +---- + +If you use a non-standard URL_DIR, slight modifications might be necessary. + From 1.8.1 to 1.8.2 ------------------- -- cgit v1.2.3-24-g4f1b