diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/bugzilla/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/bugzilla/templates/vhost.conf | 2 |
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] |