diff options
Diffstat (limited to 'templates/vhosts')
-rw-r--r-- | templates/vhosts/php/CentOS.erb | 3 | ||||
-rw-r--r-- | templates/vhosts/static/CentOS.erb | 4 | ||||
-rw-r--r-- | templates/vhosts/static/OpenBSD.erb | 6 |
3 files changed, 13 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> diff --git a/templates/vhosts/static/CentOS.erb b/templates/vhosts/static/CentOS.erb index 1019deb..6739e7b 100644 --- a/templates/vhosts/static/CentOS.erb +++ b/templates/vhosts/static/CentOS.erb @@ -21,4 +21,8 @@ <%- unless additional_options == 'absent' then -%> <%= additional_options %> <%- end -%> + + RewriteEngine on + RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) + RewriteRule .* - [F </VirtualHost> diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb index 1c2498b..94ec206 100644 --- a/templates/vhosts/static/OpenBSD.erb +++ b/templates/vhosts/static/OpenBSD.erb @@ -32,6 +32,9 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> + RewriteEngine on + RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) + RewriteRule .* - [F </VirtualHost> <%- unless ssl_mode.to_s == 'false' then -%> @@ -64,5 +67,8 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> + RewriteEngine on + RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) + RewriteRule .* - [F </VirtualHost> <%- end -%> |