summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_joomla/php_joomla.erb
blob: fa095ff82a0cfba15fd6ed921a7f33fc06ca12a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>