From 9cb1873d02ddfa95a191bc4ac2433a4e67665f7c Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 25 Nov 2014 09:29:34 +0000 Subject: bugzilla: Add a simple redirect rule for BZ for neater BZ URLs --- modules/bugzilla/manifests/init.pp | 1 + modules/bugzilla/templates/vhost.conf | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 modules/bugzilla/templates/vhost.conf (limited to 'modules/bugzilla') diff --git a/modules/bugzilla/manifests/init.pp b/modules/bugzilla/manifests/init.pp index 62800408..ddd3a41d 100644 --- a/modules/bugzilla/manifests/init.pp +++ b/modules/bugzilla/manifests/init.pp @@ -42,6 +42,7 @@ class bugzilla { apache::vhost::redirect_ssl { $bugs_vhost: } apache::vhost::base { $bugs_vhost: + content => template('bugzilla/vhost.conf'), aliases => { '/bugzilla/' => $vhost_root }, use_ssl => true, location => $vhost_root, diff --git a/modules/bugzilla/templates/vhost.conf b/modules/bugzilla/templates/vhost.conf new file mode 100644 index 00000000..79eab9fb --- /dev/null +++ b/modules/bugzilla/templates/vhost.conf @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^/([0-9]+)$ /show_bug.cgi?id=$1 [R=301,L] -- cgit v1.2.1