summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-11 19:13:34 +0200
committermh <mh@immerda.ch>2010-08-11 19:13:34 +0200
commit888e0d3dde723fff0ba11d8a24a4c2e64d299ea5 (patch)
tree9c35fd7ba3013f79721b1b8d49912d17cd88d808
parentf2fad4fa29ff23b2220ba777f54f6be737e051be (diff)
use default logpath as redirects usually don't have a root path
-rw-r--r--manifests/vhost/redirect.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/vhost/redirect.pp b/manifests/vhost/redirect.pp
index e828097..53b1a07 100644
--- a/manifests/vhost/redirect.pp
+++ b/manifests/vhost/redirect.pp
@@ -32,6 +32,11 @@ define apache::vhost::redirect(
domain => $domain,
domainalias => $domainalias,
server_admin => $server_admin,
+ logpath => $operatingsystem ? {
+ openbsd => '/var/www/logs',
+ centos => '/var/log/httpd',
+ default => '/var/log/apache2'
+ },
logmode => $logmode,
allow_override => $allow_override,
mod_security => false,