diff --git a/templates/vhost.conf.erb b/templates/vhost.conf.erb index 64024cfef..95ad3ce7d 100644 --- a/templates/vhost.conf.erb +++ b/templates/vhost.conf.erb @@ -27,9 +27,9 @@ <%= scope.function_template(['apache/vhost/_directories.erb']) -%> ## Load additional static includes -<% Array(@additional_includes).each do |include| %> +<% Array(@additional_includes).each do |include| -%> Include "<%= include %>" -<% end %> +<% end -%> ## Logging <% if @error_log -%> diff --git a/templates/vhost/_proxy.erb b/templates/vhost/_proxy.erb index 8802bc16b..045c90691 100644 --- a/templates/vhost/_proxy.erb +++ b/templates/vhost/_proxy.erb @@ -3,7 +3,7 @@ ## Proxy rules ProxyRequests Off <%- end -%> -<% if @proxy_preserve_host %> +<% if @proxy_preserve_host -%> ProxyPreserveHost On <%- end -%> <%- [@proxy_pass].flatten.compact.each do |proxy| -%> @@ -17,11 +17,11 @@ <%- end -%> <%- end -%> -<% end %> +<% end -%> <% if @proxy_dest -%> <%- Array(@no_proxy_uris).each do |uri| -%> ProxyPass <%= uri %> ! -<% end %> +<% end -%> ProxyPass / <%= @proxy_dest %>/ ProxyPassReverse <%= @proxy_dest %>/ diff --git a/templates/vhost/_rewrite.erb b/templates/vhost/_rewrite.erb index af8b45001..c995868d7 100644 --- a/templates/vhost/_rewrite.erb +++ b/templates/vhost/_rewrite.erb @@ -27,7 +27,7 @@ <%- end -%> <%- end -%> <%- end -%> -<%# reverse compatibility %> +<%# reverse compatibility -%> <% if @rewrite_rule and !@rewrites -%> ## Rewrite rules RewriteEngine On