summaryrefslogtreecommitdiff
path: root/templates/vhosts/itk_plus
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-04-14 22:54:24 +0200
committermh <mh@immerda.ch>2014-04-14 22:54:24 +0200
commitc52c48534d76b0a9c965784bd12eb1c1fccd94c6 (patch)
treefe7809e05cf0a222dc823ada82a87f0346d70d08 /templates/vhosts/itk_plus
parentdf43214cdce1f474fa11ab1c1752fdd28a2ae19e (diff)
cleanup identation of if then else, especially for the produced file
Diffstat (limited to 'templates/vhosts/itk_plus')
-rw-r--r--templates/vhosts/itk_plus/partial.erb24
1 files changed, 12 insertions, 12 deletions
diff --git a/templates/vhosts/itk_plus/partial.erb b/templates/vhosts/itk_plus/partial.erb
index 5b05dd8..9c5a1ac 100644
--- a/templates/vhosts/itk_plus/partial.erb
+++ b/templates/vhosts/itk_plus/partial.erb
@@ -3,30 +3,30 @@
ProxyRequests off
<% if vhost_part == :ssl -%>
SSLProxyEngine On
- <%- if run_mode.to_s == 'static-itk' -%>
+<% if run_mode.to_s == 'static-itk' -%>
ProxyPassMatch ^/(.*\.<%= passing_extension %>/?.*)$ https://127.0.0.1/$1
- <%- else -%>
+<% else -%>
ProxyPass / https://127.0.0.1/
- <%- end -%>
+<% end -%>
ProxyPassReverse / https://127.0.0.1/
<% else -%>
- <% if run_mode.to_s == 'static-itk' -%>
+<% if run_mode.to_s == 'static-itk' -%>
ProxyPassMatch ^/(.*\.<%= passing_extension %>/?.*)$ http://127.0.0.1/$1
- <% else -%>
+<% else -%>
ProxyPass / http://127.0.0.1/
- <% end -%>
+<% end -%>
ProxyPassReverse / http://127.0.0.1/
-<% end %>
+<% end -%>
- <% if run_mode.to_s == 'static-itk' && (ssl_mode.to_s != 'force' || vhost_part == :ssl) -%>
+<% if run_mode.to_s == 'static-itk' && (ssl_mode.to_s != 'force' || vhost_part == :ssl) -%>
<Directory "<%= documentroot %>/">
AllowOverride <%= allow_override %>
- <% if options.to_s != 'absent' or do_includes.to_s == 'true' then -%>
- Options <% unless options.to_s == 'absent' then -%><%= options %><% end -%><% if do_includes.to_s == 'true' and not options.include?('+Includes') then -%> +Includes<% end -%>
+<% if options.to_s != 'absent' or do_includes.to_s == 'true' -%>
+ Options <% unless options.to_s == 'absent' -%><%= options %><% end -%><% if do_includes.to_s == 'true' and not options.include?('+Includes') -%> +Includes<% end -%>
- <% end -%>
+<% end -%>
<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>
</Directory>
- <% end -%>
+<% end -%>