diff options
-rw-r--r-- | templates/vhosts/perl/CentOS.erb | 2 | ||||
-rw-r--r-- | templates/vhosts/php/CentOS.erb | 2 | ||||
l---------[-rw-r--r--] | templates/vhosts/static/CentOS.erb | 26 |
3 files changed, 3 insertions, 27 deletions
diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index 92e703c..d2b768f 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -17,7 +17,7 @@ <%- end -%> <Directory "<%= documentroot %>/"> AllowOverride <%= allow_override %> - <%- unless options.to_s == 'absent' then -%> + <%- unless options.to_s == 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index cee935e..e89db77 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -12,7 +12,7 @@ <Directory "<%= documentroot %>/"> AllowOverride <%= allow_override %> - <%- unless options.to_s == 'absent' then -%> + <%- unless options.to_s == 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> diff --git a/templates/vhosts/static/CentOS.erb b/templates/vhosts/static/CentOS.erb index e990f5e..58a2ba5 100644..120000 --- a/templates/vhosts/static/CentOS.erb +++ b/templates/vhosts/static/CentOS.erb @@ -1,25 +1 @@ -<VirtualHost *:80> - Include conf.d/defaults.inc - - ServerName <%= servername %> - <%- unless serveralias.to_s.empty? -%> - ServerAlias <%= serveralias %> - <%- end -%> - DocumentRoot <%= documentroot %> - - ErrorLog <%= logdir %>/error_log - CustomLog <%= logdir %>/access_log combined - - <Directory "<%= documentroot %>"> - AllowOverride <%= allow_override %> - Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> - </Directory> - - <IfModule mod_security2.c> - SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %> - </IfModule> - - <%- unless additional_options == 'absent' then -%> - <%= additional_options %> - <%- end -%> -</VirtualHost> +OpenBSD.erb
\ No newline at end of file |