summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/vhost/php/wordpress.pp2
-rw-r--r--templates/vhosts/php_wordpress/partial.erb6
2 files changed, 7 insertions, 1 deletions
diff --git a/manifests/vhost/php/wordpress.pp b/manifests/vhost/php/wordpress.pp
index b3f98c1..7a41ad7 100644
--- a/manifests/vhost/php/wordpress.pp
+++ b/manifests/vhost/php/wordpress.pp
@@ -52,7 +52,7 @@ define apache::vhost::php::wordpress(
$mod_security_additional_options = 'absent',
$ssl_mode = false,
$vhost_mode = 'template',
- $template_partial = 'apache/vhosts/php/partial.erb',
+ $template_partial = 'apache/vhosts/php_wordpress/partial.erb',
$vhost_source = 'absent',
$vhost_destination = 'absent',
$htpasswd_file = 'absent',
diff --git a/templates/vhosts/php_wordpress/partial.erb b/templates/vhosts/php_wordpress/partial.erb
new file mode 100644
index 0000000..972ab99
--- /dev/null
+++ b/templates/vhosts/php_wordpress/partial.erb
@@ -0,0 +1,6 @@
+<%= scope.function_template(['apache/vhosts/php/partial.erb']) %>
+
+# fixes: http://git.zx2c4.com/w3-total-fail/tree/w3-total-fail.sh
+<Directory "<%= documentroot %>/wp-content/w3tc/dbcache">
+ Deny From All
+</Directory>