summaryrefslogtreecommitdiff
path: root/manifests/vhost/redirect.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-11 14:06:53 +0200
committermh <mh@immerda.ch>2010-08-11 14:06:53 +0200
commit7bbb0feacac0565457f5f56f65468429803454fb (patch)
tree7c384ffbea93302afebacdaae9492b3279fd02e1 /manifests/vhost/redirect.pp
parentd50296539fc641b6387fcea712d950785c83cea3 (diff)
introduce logmode feature
We are now able to select how apache should log accesses. These modes are: * default: as you would use it * semianonym: no ips are logged for CustomLog, ErrorLog still logs ips * anonym: no ips are logged for CustomLog, ErrorLog is sent to /dev/null * nologs: all logs are sent to /dev/null
Diffstat (limited to 'manifests/vhost/redirect.pp')
-rw-r--r--manifests/vhost/redirect.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/vhost/redirect.pp b/manifests/vhost/redirect.pp
index 10b78bf..e828097 100644
--- a/manifests/vhost/redirect.pp
+++ b/manifests/vhost/redirect.pp
@@ -10,12 +10,18 @@
# - true: enable ssl for this vhost
# - force: enable ssl and redirect non-ssl to ssl
# - only: enable ssl only
+# logmode:
+# - default: Do normal logging to CustomLog and ErrorLog
+# - nologs: Send every logging to /dev/null
+# - anonym: Don't log ips for CustomLog, send ErrorLog to /dev/null
+# - semianonym: Don't log ips for CustomLog, log normal ErrorLog
define apache::vhost::redirect(
$ensure = present,
$domain = 'absent',
$domainalias = 'absent',
$target_url,
$server_admin = 'absent',
+ $logmode = 'default',
$ssl_mode = false
){
# create vhost configuration file
@@ -26,6 +32,7 @@ define apache::vhost::redirect(
domain => $domain,
domainalias => $domainalias,
server_admin => $server_admin,
+ logmode => $logmode,
allow_override => $allow_override,
mod_security => false,
options => $target_url,