summaryrefslogtreecommitdiff
path: root/templates/vhost-redirect.conf.erb
blob: 0a971420a12de25aba73da6efa914dbe3fc84fbb (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 != nil %>
<%= "  ServerAlias #{@serveraliases}" %>
<% end %>
  Redirect / <%= @dest %>/
</VirtualHost>