66faa9c340
Change-Id: I5c1a4adc25bab62564effba527122e57c229d1c5
32 lines
853 B
Plaintext
32 lines
853 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 != '' -%>
|
|
<%= " ServerAlias #{serveraliases}" %>
|
|
<% end -%>
|
|
DocumentRoot <%= docroot %>
|
|
<FilesMatch \.log$>
|
|
ForceType text/plain
|
|
AddDefaultCharset UTF-8
|
|
</FilesMatch>
|
|
<Directory <%= docroot %>>
|
|
Options <%= options %>
|
|
AllowOverride None
|
|
Order allow,deny
|
|
allow from all
|
|
</Directory>
|
|
|
|
<%= vhost_extra %>
|
|
|
|
ErrorLog /var/log/apache2/<%= name %>_error.log
|
|
LogLevel warn
|
|
CustomLog /var/log/apache2/<%= name %>_access.log combined
|
|
ServerSignature Off
|
|
</VirtualHost>
|