aboutsummaryrefslogtreecommitdiffstats
path: root/modules/apache/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:42 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:07:42 +0000
commit9459f8fad296bea99dd9bccabb337a2dc3bdb4a8 (patch)
tree04ba704ec7186858100856b6868c3f5bb5af7cc0 /modules/apache/manifests
parentc82d2d6bb1571c3f9058e8c52fa83831cfbea360 (diff)
downloadpuppet-9459f8fad296bea99dd9bccabb337a2dc3bdb4a8.tar
puppet-9459f8fad296bea99dd9bccabb337a2dc3bdb4a8.tar.gz
puppet-9459f8fad296bea99dd9bccabb337a2dc3bdb4a8.tar.bz2
puppet-9459f8fad296bea99dd9bccabb337a2dc3bdb4a8.tar.xz
puppet-9459f8fad296bea99dd9bccabb337a2dc3bdb4a8.zip
apache: add option to select default redirect URL
Add an option to change the URL to redirect to in case of unknown vhost. If the option is not provided, a 404 error is returned.
Diffstat (limited to 'modules/apache/manifests')
-rw-r--r--modules/apache/manifests/var.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/apache/manifests/var.pp b/modules/apache/manifests/var.pp
index 294af458..2c33a23f 100644
--- a/modules/apache/manifests/var.pp
+++ b/modules/apache/manifests/var.pp
@@ -1,9 +1,12 @@
# $httpdlogs_rotate:
# number of time the log file are rotated before being removed
+# $default_vhost_redirect:
+# URL to redirect to in case of unknown vhost
class apache::var(
$httpdlogs_rotate = '24',
$apache_user = 'apache',
- $apache_group = 'apache'
+ $apache_group = 'apache',
+ $default_vhost_redirect = ''
) {
if ($::lsbdistrelease == '1') or ($::lsbdistid == 'MandrivaLinux') {
$pkg_conf = 'apache-conf'