diff options
author | o <o@immerda.ch> | 2012-12-28 13:42:31 +0100 |
---|---|---|
committer | o <o@immerda.ch> | 2012-12-28 13:46:53 +0100 |
commit | fe4113a36c48128474a2d7c3784c50d5af3e3931 (patch) | |
tree | 99238b54fc4198c213c4526d0efb7d6d4e9637a3 | |
parent | 3f0da2ac4651340a459194e450dbe8be6b1b8cab (diff) |
add a workaround for
http://git.zx2c4.com/w3-total-fail/tree/w3-total-fail.sh
to all wordpress vhosts
mend
-rw-r--r-- | manifests/vhost/php/wordpress.pp | 2 | ||||
-rw-r--r-- | templates/vhosts/php_wordpress/partial.erb | 6 |
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> |