diff options
author | mh <mh@immerda.ch> | 2011-10-12 23:38:24 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-10-12 23:38:24 +0200 |
commit | 041b1930c77117c7f23c07f23ea14bff77bcf49d (patch) | |
tree | dd27bdce8fd245f684c7bfc722a3891c3f353e33 /templates/vhosts/php_joomla/partial.erb | |
parent | 42f3d56f39a7c82ae7774f750178e078e801c137 (diff) |
rename partial correctly
Diffstat (limited to 'templates/vhosts/php_joomla/partial.erb')
-rw-r--r-- | templates/vhosts/php_joomla/partial.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/vhosts/php_joomla/partial.erb b/templates/vhosts/php_joomla/partial.erb new file mode 100644 index 0000000..fa095ff --- /dev/null +++ b/templates/vhosts/php_joomla/partial.erb @@ -0,0 +1,19 @@ + <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/joomla.inc + </Directory> + + <Directory "<%= documentroot %>/administrator/"> + RewriteEngine on + + # Rewrite URLs to https that go for the admin area + RewriteCond %{REMOTE_ADDR} !^127\.[0-9]+\.[0-9]+\.[0-9]+$ + RewriteCond %{HTTPS} !=on + RewriteCond %{REQUEST_URI} (.*/administrator/.*) + RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R] + </Directory>
\ No newline at end of file |