summaryrefslogtreecommitdiff
path: root/templates/vhost-redirect.conf.erb
blob: 1cd03626044bd3510b055cba05d1223a23d9b6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
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 %>
  Redirect / <%= @dest %>/
</VirtualHost>