system-config/modules/openstack_project/templates/files.vhost.erb
Clark Boylan c25e91f496 Generate list of 404s for docs.o.o
This generates a list of 404s by count for docs.openstack.org.
This simple list will be hosted at https://files.openstack.org/docs-404s
and can be used by projects to update their rewrite rules to properly
redirect old urls to current urls.

Change-Id: Ic4c184b59eab3e5c6080452f8526a26892abe52e
2017-08-04 16:41:57 +00:00

37 lines
1.1 KiB
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>
Alias /docs-404s /var/www/docs-404s
<Directory "/var/www/docs-404s">
Options +Indexes
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>