summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_joomla/partial.erb
blob: 526352aa7c43abd4f17f0adb81493e49b2faaa1a (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>