aboutsummaryrefslogtreecommitdiffstats
path: root/modules/bugzilla
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-11-25 09:29:34 +0000
committerColin Guthrie <colin@mageia.org>2014-11-25 09:29:34 +0000
commit9cb1873d02ddfa95a191bc4ac2433a4e67665f7c (patch)
treef7c7ba42846d340c3c47c4514279452264f3014c /modules/bugzilla
parent452d2ee2a7a92fc48023a7cc002d5d543825784d (diff)
downloadpuppet-9cb1873d02ddfa95a191bc4ac2433a4e67665f7c.tar
puppet-9cb1873d02ddfa95a191bc4ac2433a4e67665f7c.tar.gz
puppet-9cb1873d02ddfa95a191bc4ac2433a4e67665f7c.tar.bz2
puppet-9cb1873d02ddfa95a191bc4ac2433a4e67665f7c.tar.xz
puppet-9cb1873d02ddfa95a191bc4ac2433a4e67665f7c.zip
bugzilla: Add a simple redirect rule for BZ for neater BZ URLs
Diffstat (limited to 'modules/bugzilla')
-rw-r--r--modules/bugzilla/manifests/init.pp1
-rw-r--r--modules/bugzilla/templates/vhost.conf2
2 files changed, 3 insertions, 0 deletions
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]