summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/defines/vhost_varieties.pp11
1 files changed, 10 insertions, 1 deletions
diff --git a/manifests/defines/vhost_varieties.pp b/manifests/defines/vhost_varieties.pp
index 89cda95..fbf58d7 100644
--- a/manifests/defines/vhost_varieties.pp
+++ b/manifests/defines/vhost_varieties.pp
@@ -176,7 +176,16 @@ define apache::vhost::modperl(
){
# cgi_bin path
case $cgi_binpath {
- 'absent': { $real_cgi_binpath = "${path}/cgi-bin" }
+ 'absent': {
+ $real_path = $path ? {
+ 'absent' => $operatingsystem ? {
+ openbsd => "/var/www/htdocs/${name}",
+ default => "/var/www/vhosts/${name}"
+ },
+ default => "${path}"
+ }
+ $real_cgi_binpath = "${real_path}/cgi-bin"
+ }
default: { $real_cgi_binpath = $cgi_binpath }
}
file{$real_cgi_binpath: