diff options
author | mh <mh@immerda.ch> | 2011-10-08 19:22:40 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-10-08 19:22:40 +0200 |
commit | 2fa748dcc92e34b13bd4b6f7e452ef89b29490c4 (patch) | |
tree | f3827bd2c8cc3206b4f2a5a8a09b4951940d6cc4 /templates/vhosts/php_drupal/partial.erb | |
parent | 24c047d1cfc54c003eef7445e177e28f373c1da4 (diff) |
introduce a new template style, less duplicated things, more handy options
Diffstat (limited to 'templates/vhosts/php_drupal/partial.erb')
-rw-r--r-- | templates/vhosts/php_drupal/partial.erb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/vhosts/php_drupal/partial.erb b/templates/vhosts/php_drupal/partial.erb new file mode 100644 index 0000000..07e0d94 --- /dev/null +++ b/templates/vhosts/php_drupal/partial.erb @@ -0,0 +1,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> |