summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_silverstripe/partial.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php_silverstripe/partial.erb')
-rw-r--r--templates/vhosts/php_silverstripe/partial.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/vhosts/php_silverstripe/partial.erb b/templates/vhosts/php_silverstripe/partial.erb
new file mode 100644
index 0000000..89a6052
--- /dev/null
+++ b/templates/vhosts/php_silverstripe/partial.erb
@@ -0,0 +1,16 @@
+<% if vhost_part != :ssl && ![false,'false'].include?(ssl_mode) -%>
+ # silverstripe
+ RedirectMatch /admin(.*) https://<%= servername %>/admin$1
+ RedirectMatch /Security(.*) https://<%= servername %>/Security$1
+
+<% end -%>
+ <Directory "<%= documentroot %>/">
+
+<%= scope.function_template(['apache/vhosts/partials/std_override_options.erb']) %>
+
+<%= scope.function_template(['apache/vhosts/partials/php_settings.erb']) %>
+
+<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>
+
+ Include include.d/silverstripe.inc
+ </Directory>