system-config/modules/openstack_project/templates/devstack.vhost.erb
Jeremy Stanley af6add3361 Host a devstack.org redirect on static
This provides a hollow "devstack.org" vhost as a permanent redirect
to the docs.openstack.org/developer/devstack site. It also aliases
*.devstack.org to the same vhost.

Change-Id: Ib96e4d4e21bbdd961eb32529c66acf750d79bec5
2014-10-23 23:06:54 +00:00

22 lines
704 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/devstack/$1 [last,redirect=permanent]
ErrorLog /var/log/apache2/<%= @name %>_error.log
LogLevel warn
CustomLog /var/log/apache2/<%= @name %>_access.log combined
ServerSignature Off
</VirtualHost>