<%- if use_ssl then port = 443 else port = 80 end -%> > <%- if use_ssl then -%> <%= scope.function_template(["apache/vhost_ssl.conf"]) %> <%- end -%> ServerName <%= @real_vhost %> <%- server_aliases.each do |key| -%> ServerAlias <%= @key %> <%- end -%> DocumentRoot <%= @location %> CustomLog <%= @real_access_logfile %> combined ErrorLog <%= @real_error_logfile %> <%- if enable_public_html -%> #TODO add the rest UserDir public_html <%- else -%> UserDir disabled <%- end -%> <%- aliases.keys.sort {|a,b| a.size <=> b.size }.reverse.each do |key| -%> Alias <%= @key %> <%= @aliases[key] %> <%- end -%> <%= @content %> <%- if options.length > 0 -%> > Options <%= @options.join(" ") %> <%- end -%> <%- if enable_location -%> Require all granted Allow from all <%- end -%>