From 43e571e2e824f06b65bcba5575c2b8e672a5fab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 20 Jul 2021 21:45:25 +0200 Subject: httpd.conf: Add git.ankarstrom.se category redirects --- usr/pkg/etc/httpd/httpd.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/pkg') diff --git a/usr/pkg/etc/httpd/httpd.conf b/usr/pkg/etc/httpd/httpd.conf index a9f36e4..c3620ed 100644 --- a/usr/pkg/etc/httpd/httpd.conf +++ b/usr/pkg/etc/httpd/httpd.conf @@ -249,8 +249,11 @@ use Tie::DxHash; my %redir = ( 'git.ankarstrom.se' => block( - RewriteRule => '^Apache-Inject\.git/?$ /cpan/Apache-Inject/ [L,R,END]', RewriteRule => '^vix/?$ /exrc/ [L,R,END]', + RewriteRule => '^vix/?$ /exrc/ [L,R,END]', + RewriteRule => '^x11/([^/]*)/?$ /$1/ [L,R,END]', + RewriteRule => '^cpan/([^/]*)/?$ /$1/ [L,R,END]', + RewriteRule => '^cfg/([^/]*)/?$ /$1/ [L,R,END]', RewriteRule => '^([^/]*)\.git(/.*)?$ /$1$2 [L,R,END]', ), 'john.ankarstrom.se' => block( -- cgit v1.2.3