system-config/modules/openstack_project/templates/legacy.vhost.erb
Clark Boylan e940f7737e Use https://docs.openstack.org everywhere
We have lots of links and redirects into docs.o.o using http but we host
via https now. Avoid unnecessary redirects and point directly at https.

Change-Id: I3a01533afa5915dcfc0a7220dd511819911108ca
2017-04-19 11:47:02 -07:00

22 lines
723 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 ^/(.*) https://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>