X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/93088ecf5f09c8d7383fccd4aa06fcf44cb4691a..b0cff008c5d80c4c80b5bdba555d27f6c048932d:/cookbooks/wordpress/templates/default/apache.erb diff --git a/cookbooks/wordpress/templates/default/apache.erb b/cookbooks/wordpress/templates/default/apache.erb index 90adc23a2..997b44322 100644 --- a/cookbooks/wordpress/templates/default/apache.erb +++ b/cookbooks/wordpress/templates/default/apache.erb @@ -11,25 +11,25 @@ CustomLog /var/log/apache2/<%= @name %>-access.log combined ErrorLog /var/log/apache2/<%= @name %>-error.log - <% if @ssl_enabled -%> - RedirectPermanent / https://<%= @name %>/ - - - ServerName <%= @name %> - <% @aliases.each do |alias_name| -%> - ServerAlias <%= alias_name %> - <% end -%> - - ServerAdmin webmaster@openstreetmap.org - - # - # Enable SSL - # - SSLEngine on - - CustomLog /var/log/apache2/<%= @name %>-access.log combined - ErrorLog /var/log/apache2/<%= @name %>-error.log + RedirectPermanent / https://<%= @name %>/ + + + + ServerName <%= @name %> +<% @aliases.each do |alias_name| -%> + ServerAlias <%= alias_name %> +<% end -%> + + ServerAdmin webmaster@openstreetmap.org + + # + # Enable SSL + # + SSLEngine on + + CustomLog /var/log/apache2/<%= @name %>-access.log combined + ErrorLog /var/log/apache2/<%= @name %>-error.log <% end -%> DocumentRoot <%= @directory %>