summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_drupal/partial.erb
blob: 3c420b1aca6f7a7cf086a6d2a818711ed7c2049c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    <Directory "<%= documentroot %>/">
<%= scope.function_template(['apache/vhosts/partials/std_override_options.erb']) %>

        
<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>

<%= scope.function_template(['apache/vhosts/partials/php_settings.erb']) %>

        # Protect files and directories from prying eyes.
        <FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
            Order allow,deny
        </FilesMatch>

        # Customized error messages.
        ErrorDocument 404 /index.php

        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    </Directory>
    <Directory "<%= documentroot %>/files/">
        SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
        Options None
        Options +FollowSymLinks
    </Directory>