From 5f0206aaeb5f8be87f6ee39448e7f36a3c7dd6ee Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 5 Dec 2008 17:21:54 +0000 Subject: - add index.shtml to default index if we do includ es, as well add +Includes to the directory options if not yet done - removed the security rewrite as it is already in the defaults.inc! - removed the enforcement of mod_security --- templates/vhosts/perl/CentOS.erb | 5 +---- templates/vhosts/php/CentOS.erb | 5 +---- templates/vhosts/static/CentOS.erb | 4 +--- templates/vhosts/static/OpenBSD.erb | 10 ++-------- 4 files changed, 5 insertions(+), 19 deletions(-) (limited to 'templates/vhosts') diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index 2dce115..92e703c 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -18,7 +18,7 @@ /"> AllowOverride <%= allow_override %> <%- unless options.to_s == 'absent' then -%> - Options <%= options %> + Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> AuthType Basic @@ -45,7 +45,4 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> - RewriteEngine on - RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) - RewriteRule .* - [F] diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index 26cbe23..cee935e 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -13,7 +13,7 @@ /"> AllowOverride <%= allow_override %> <%- unless options.to_s == 'absent' then -%> - Options <%= options %> + Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> AuthType Basic @@ -34,7 +34,4 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> - RewriteEngine on - RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) - RewriteRule .* - [F] diff --git a/templates/vhosts/static/CentOS.erb b/templates/vhosts/static/CentOS.erb index 1e93756..e990f5e 100644 --- a/templates/vhosts/static/CentOS.erb +++ b/templates/vhosts/static/CentOS.erb @@ -12,6 +12,7 @@ "> AllowOverride <%= allow_override %> + Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> @@ -21,7 +22,4 @@ <%- unless additional_options == 'absent' then -%> <%= additional_options %> <%- end -%> - RewriteEngine on - RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) - RewriteRule .* - [F diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb index c04f372..5dd02ef 100644 --- a/templates/vhosts/static/OpenBSD.erb +++ b/templates/vhosts/static/OpenBSD.erb @@ -17,7 +17,7 @@ <%- if (options.to_s != 'absent' or htpasswd_file.to_s != 'absent') and not ssl_mode.to_s == 'force' then -%> /"> <%- unless options.to_s == 'absent' then -%> - Options <%= options %> + Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> @@ -32,9 +32,6 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> - RewriteEngine on - RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) - RewriteRule .* - [F] <%- unless ssl_mode.to_s == 'false' then -%> @@ -52,7 +49,7 @@ <%- if options.to_s != 'absent' or htpasswd_file.to_s != 'absent' then -%> /"> <%- unless options.to_s == 'absent' then -%> - Options <%= options %> + Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> @@ -67,8 +64,5 @@ <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> - RewriteEngine on - RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) - RewriteRule .* - [F] <%- end -%> -- cgit v1.2.3