summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/header_default.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/partials/header_default.erb')
-rw-r--r--templates/vhosts/partials/header_default.erb12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/vhosts/partials/header_default.erb b/templates/vhosts/partials/header_default.erb
index a9a87bc..d6d8c86 100644
--- a/templates/vhosts/partials/header_default.erb
+++ b/templates/vhosts/partials/header_default.erb
@@ -3,18 +3,18 @@
Include include.d/ssl_defaults.inc
<% end -%>
ServerName <%= servername %>
-<% unless serveralias.to_s.empty? || (serveralias.to_s == 'absent') -%>
+<% unless serveralias.empty? || (serveralias == 'absent') -%>
ServerAlias <%= serveralias %>
<% end -%>
-<% unless server_admin.to_s.empty? || (server_admin.to_s == 'absent') -%>
+<% unless server_admin.empty? || (server_admin == 'absent') -%>
ServerAdmin <%= server_admin %>
<% end -%>
-<% unless documentroot.to_s == 'really_absent' -%>
+<% unless documentroot == 'really_absent' -%>
DocumentRoot <%= documentroot %>/
<% end -%>
-<% if default_charset.to_s != 'absent' then -%>
+<% if default_charset != 'absent' then -%>
AddDefaultCharset <%= default_charset %>
<% end -%>
-<% if has_variable?('passing_extension') && !passing_extension.to_s.empty? -%>
+<% if passing_extension != 'absent' -%>
DirectoryIndex index.htm index.html index.<%= passing_extension %>
-<% end -%> \ No newline at end of file
+<% end -%>