system-config/modules/openstack_project/templates/files.vhost.erb
James E. Blair 350d3d7809 Use mod_autoindex on files.o.o
So that it's easy for us to explore the afs hierarchy through the
web.

Change-Id: Ibe988660e8c633dd5a349c9bda588b12e0253475
2016-09-27 10:00:05 -07:00

31 lines
1022 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 %>>
Options Indexes FollowSymLinks MultiViews
Satisfy any
Require all granted
</Directory>
Alias /robots.txt /var/www/robots.txt
<Directory "/var/www/robots.txt">
Require all granted
</Directory>
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>