summaryrefslogtreecommitdiff
path: root/templates/vhosts/php
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-11-30 14:10:09 +0000
committermh <mh@immerda.ch>2008-11-30 14:10:09 +0000
commit64cb4ea11550492adbdd36765bb196c078302ac6 (patch)
tree4e6d1a36f584c0163b46c1338d22459b4f0283d9 /templates/vhosts/php
parentfb739f02a60321a0019e93f101d0c6b6352801a6 (diff)
disallow trace and track on vhosts -> security
Diffstat (limited to 'templates/vhosts/php')
-rw-r--r--templates/vhosts/php/CentOS.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb
index 472afbc..43aad94 100644
--- a/templates/vhosts/php/CentOS.erb
+++ b/templates/vhosts/php/CentOS.erb
@@ -34,4 +34,7 @@
<%- unless additional_options.to_s == 'absent' then -%>
<%= additional_options %>
<%- end -%>
+ RewriteEngine on
+ RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
+ RewriteRule .* - [F]
</VirtualHost>