aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-18 19:28:23 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-18 19:29:14 +0200
commit4d31a80fe7b1e451a995f9e0a5cb8feaca5d00d5 (patch)
tree337edacc5dbc115077eb9e73047c867ae18b97b0
parent65abdee504ed8931dd6d18bdab4670e3edcba1e2 (diff)
downloadrbsd-4d31a80fe7b1e451a995f9e0a5cb8feaca5d00d5.tar.gz
httpd.conf: Configure perlisdead.org
Also add redirection for git.ankarstrom.se.
-rw-r--r--usr/pkg/etc/httpd/httpd.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/pkg/etc/httpd/httpd.conf b/usr/pkg/etc/httpd/httpd.conf
index 80813dc..a9f36e4 100644
--- a/usr/pkg/etc/httpd/httpd.conf
+++ b/usr/pkg/etc/httpd/httpd.conf
@@ -250,6 +250,7 @@ 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 => '^([^/]*)\.git(/.*)?$ /$1$2 [L,R,END]',
),
'john.ankarstrom.se' => block(
@@ -290,6 +291,7 @@ vhost block(ServerName => 'git.ankarstrom.se',
Options => '+ExecCGI',
AddHandler => 'cgi-script .cgi',
RewriteEngine => 'On',
+ %{$redir{'git.ankarstrom.se'}},
RewriteCond => '%{REQUEST_FILENAME} !-f',
RewriteCond => '%{REQUEST_FILENAME} !-d',
RewriteRule => '(.*) cgit.cgi/$1 [END,QSA]',
@@ -302,7 +304,8 @@ vhost block(ServerName => 'john.ankarstrom.se');
vhost block(ServerName => 'mail.ankarstrom.se');
vhost block(ServerName => 'software.ankarstrom.se');
vhost block(ServerName => 'perlisdead.org',
- DocumentRoot => '/var/www/perlisdead/out');
+ DocumentRoot => '/var/www/perlisdead/out'
+);
# Default virtual host configuration