<%- if use_ssl then port = 443 else port = 80 end -%> > <%- if use_ssl then -%> SSLEngine on <%- if wildcard_sslcert == 'true' then -%> SSLCertificateFile /etc/ssl/wildcard.<%= domain %>.crt SSLCertificateKeyFile /etc/ssl/wildcard.<%= domain %>.key SSLCACertificateFile /etc/ssl/wildcard.<%= domain %>.pem SSLVerifyClient None <%- else -%> SSLCertificateFile /etc/ssl/apache/<%= real_vhost %>.pem SSLCertificateKeyFile /etc/ssl/apache/<%= real_vhost %>.pem <%- end -%> <%- 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 -%> Allow from all