From 688aed48d359f4e28c2d2d6334c860a1754d090d Mon Sep 17 00:00:00 2001 From: "Elizabeth K. Joseph" Date: Thu, 29 Oct 2015 22:50:47 -0700 Subject: [PATCH] Fix vhost in hound Apache configuration Calling just vhost_name in the Apache template was populating the file with a * for the name. Add the full scope so it finds what it needs. Change-Id: Ibd78236e31e729261ac96c6964f3c2d5796a9566 --- templates/hound.vhost.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/hound.vhost.erb b/templates/hound.vhost.erb index 4370620..f8f148e 100644 --- a/templates/hound.vhost.erb +++ b/templates/hound.vhost.erb @@ -1,12 +1,12 @@ - ServerName <%= @vhost_name %> + ServerName <%= scope.lookupvar("hound::vhost_name") %> ServerAdmin <%= @serveradmin %> - ErrorLog ${APACHE_LOG_DIR}/<%= @vhost_name %>-error.log + ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("hound::vhost_name") %>-error.log LogLevel warn - CustomLog ${APACHE_LOG_DIR}/<%= @vhost_name %>-access.log combined + CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("hound::vhost_name") %>-access.log combined RewriteEngine on