system-config/modules/openstack_project/templates/legacy.vhost.erb
Monty Taylor ff52dd32e1
Add legacy redirects to static.o.o
The legacy redirects that are on old-wiki.o.o should go away. But they
certainly should stop being served by old-wiki.

Note, this excludes quantum, which is a dead redirect anyway and
workitems which never really got off the ground and only contains out of
date info from diablo-4.

Change-Id: If78ba98ff927420d003fa69b49ed073e3a44ea09
2017-03-08 09:30:59 -06:00

22 lines
722 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://docs.openstack.org/developer/<%= @name.split('.')[0] %>/$1 [last,redirect=permanent]
ErrorLog /var/log/apache2/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>