summaryrefslogtreecommitdiff
path: root/templates/vhosts/perl/CentOS.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/perl/CentOS.erb')
-rw-r--r--templates/vhosts/perl/CentOS.erb2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb
index 0dbdb69..f02795f 100644
--- a/templates/vhosts/perl/CentOS.erb
+++ b/templates/vhosts/perl/CentOS.erb
@@ -21,6 +21,7 @@
AssignUserId <%= run_uid+" "+run_gid %>
</IfModule>
<%- end -%>
+ <%- if (options.to_s != 'absent' or htpasswd_file.to_s != 'absent') and not ssl_mode.to_s == 'force' then -%>
<Directory "<%= documentroot %>/">
AllowOverride <%= allow_override %>
<%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%>
@@ -45,6 +46,7 @@
</Directory>
<%- end -%>
+ <%- end -%>
<IfModule mod_security2.c>
SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %>
</IfModule>