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
This commit is contained in:
parent
ff55bbcbfc
commit
aa35b32546
@ -244,6 +244,16 @@ class openstack_project::static (
|
|||||||
$::project_config::config_dir],
|
$::project_config::config_dir],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
###########################################################
|
||||||
|
# legacy summit.openstack.org site redirect
|
||||||
|
|
||||||
|
apache::vhost { 'summit.openstack.org':
|
||||||
|
port => 80,
|
||||||
|
priority => '50',
|
||||||
|
docroot => 'MEANINGLESS_ARGUMENT',
|
||||||
|
template => 'openstack_project/summit.vhost.erb',
|
||||||
|
}
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
# legacy devstack.org site redirect
|
# legacy devstack.org site redirect
|
||||||
|
|
||||||
|
21
modules/openstack_project/templates/summit.vhost.erb
Normal file
21
modules/openstack_project/templates/summit.vhost.erb
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# ************************************
|
||||||
|
# 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>
|
Loading…
Reference in New Issue
Block a user