summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-12-07 13:47:10 +0000
committermh <mh@immerda.ch>2008-12-07 13:47:10 +0000
commit2b4710256ac5d638879c888427c8ce7e768546cf (patch)
tree7670c008065258a2cce705e6e61e49139f04e3d4 /manifests
parent1ca25ef7ae7e48c9dc74c786e149613c50a4aae7 (diff)
added www possibility for domainalias, added doku
Diffstat (limited to 'manifests')
-rw-r--r--manifests/defines/vhost_files.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/defines/vhost_files.pp b/manifests/defines/vhost_files.pp
index 601b0c2..ce926de 100644
--- a/manifests/defines/vhost_files.pp
+++ b/manifests/defines/vhost_files.pp
@@ -166,8 +166,14 @@ define apache::vhost::file(
}
# template_mode:
-# - php -> for a default php application
-# - static -> for a static application (default)
+# - php: for a default php application
+# - static: for a static application (default)
+# - perl: for a mod_perl application
+#
+# domainalias:
+# - absent: no domainalias is set (*default*)
+# - www: domainalias is set to www.$domain
+# - else: domainalias is set to that
#
# ssl_mode: wether this vhost supports ssl or not
# - false: don't enable ssl for this vhost (default)
@@ -212,6 +218,7 @@ define apache::vhost::template(
}
$serveralias = $domainalias ? {
'absent' => '',
+ 'www' => "www.${domain}",
default => $domainalias
}
case $htpasswd_path {