# ************************************ # Managed by Puppet # ************************************ NameVirtualHost <%= @vhost_name %>:<%= @port %> :<%= @port %>> ServerName <%= @srvname %> <% if @serveraliases.is_a? Array -%> <% @serveraliases.each do |name| -%><%= " ServerAlias #{name}\n" %><% end -%> <% elsif ! ['', nil].include?(@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