Fixup logstash vhost template to use @global vars

Change-Id: Ie1564aa338bf5f9c2d155da68cdb6cb8a43a9b55
This commit is contained in:
Spencer Krum 2014-03-13 21:02:58 -07:00
parent 0aa8a50910
commit d3a253c5ed
1 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
<VirtualHost <%= scope.lookupvar("::logstash::web::vhost_name") %>:80>
ServerName <%= scope.lookupvar("::logstash::web::vhost_name") %>
ServerAdmin <%= scope.lookupvar("::logstash::web::serveradmin") %>
<VirtualHost <%= @vhost_name %>:80>
ServerName <%= @vhost_name %>
ServerAdmin <%= @serveradmin %>
ErrorLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::logstash::web::vhost_name") %>-error.log
ErrorLog ${APACHE_LOG_DIR}/<%= @vhost_name %>-error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/<%= scope.lookupvar("::logstash::web::vhost_name") %>-access.log combined
CustomLog ${APACHE_LOG_DIR}/<%= @vhost_name %>-access.log combined
ProxyPass / http://127.0.0.1:9292/ retry=0
ProxyPassReverse / http://127.0.0.1:9292/