James E. Blair 0aeac8e91d Add files01.openstack.org
Change-Id: Ia2f5e365621e0bef65863b7b15daebb207e42493
2016-09-15 09:55:55 -07:00

32 lines
994 B
Plaintext

# ************************************
# Managed by Puppet
# ************************************
NameVirtualHost <%= @vhost_name %>:<%= @port %>
<VirtualHost <%= @vhost_name %>:<%= @port %>>
ServerName <%= @srvname %>
<% if @serveraliases.is_a? Array -%>
<% @serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%>
<% elsif @serveraliases != nil -%>
<%= " ServerAlias #{@serveraliases}" -%>
<% end -%>
DocumentRoot <%= @docroot %>
<Directory <%= @docroot %>>
Satisfy any
Require all granted
</Directory>
Alias /robots.txt /var/www/robots.txt
<Directory "/var/www/robots.txt">
Require all granted
</Directory>
RewriteEngine On
ErrorLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/<%= scope.lookupvar("httpd::params::apache_name") %>/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>