summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/header_default.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-08 12:09:39 -0300
committermh <mh@immerda.ch>2012-06-08 12:09:39 -0300
commit9cbf2fafee3f4623b75d1a6b70458ab097e64924 (patch)
tree82a619d81198ddd49cb5df5f1116281904e08023 /templates/vhosts/partials/header_default.erb
parentedc2afe65136d49501b6aaeb805269b3f7bb141f (diff)
fix dynamic scope variables, function access
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 -%>