summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/header_default.erb
blob: 4b4bcc20f7f7fde11f711c00652d2c9ea10e42f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  Include include.d/defaults.inc
<% if vhost_part == :ssl -%>
  Include include.d/ssl_defaults.inc
<% end -%>
  ServerName <%= servername %>
<% unless serveralias.to_s.empty? || (serveralias.to_s == 'absent') -%>
  ServerAlias <%= serveralias %>
<% end -%>
<% unless server_admin.to_s.empty? || (server_admin.to_s == 'absent') -%>
  ServerAdmin <%= server_admin %>
<% end -%>
<% unless documentroot.to_s == 'really_absent' -%>
  DocumentRoot <%= documentroot %>/
<% end -%>
<% if default_charset.to_s != 'absent' then -%>
  AddDefaultCharset <%= default_charset %>
<% end -%>
<% unless passing_extension.to_s.empty? -%>
  DirectoryIndex index.htm index.html index.<%= passing_extension %>
<% end -%>