system-config/modules/openstack_project/templates/summit.vhost.erb
Jeremy Stanley aa35b32546 Host a summit.openstack.org redirect on static
This provides a hollow "summit.openstack.org" vhost as a permanent
redirect to the openstack.org/summit site. As the summit schedule site
is no longer maintained, this ensures browser traffic goes somewhere
with helpful details about the summit rather than just timing out.

Change-Id: I5007214e69f8656981b6d173a0c6aa38be464fba
2014-11-01 22:58:57 +00:00

22 lines
687 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 -%>
RewriteEngine On
RewriteRule ^/(.*) http://openstack.org/summit/$1 [last,redirect=permanent]
ErrorLog /var/log/apache2/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>