From 399d57096b6c9dc956e90df422d38fdb4648458f Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 1 Dec 2008 22:11:12 +0000 Subject: added perl vhost definition --- templates/vhosts/perl/CentOS.erb | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 templates/vhosts/perl/CentOS.erb (limited to 'templates/vhosts') diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb new file mode 100644 index 0000000..9c9e1f7 --- /dev/null +++ b/templates/vhosts/perl/CentOS.erb @@ -0,0 +1,46 @@ + + Include conf.d/defaults.inc + + ServerName <%= servername %> + <%- unless serveralias.to_s.empty? then -%> + ServerAlias <%= serveralias %> + <%- end -%> + DocumentRoot <%= documentroot %>/ + + ErrorLog <%= logdir %>/error_log + CustomLog <%= logdir %>/access_log combined + + /"> + AllowOverride <%= allow_override %> + <%- unless options.to_s == 'absent' then -%> + Options <%= options %> + <%- end -%> + <%- unless htpasswd_file.to_s == 'absent' then -%> + AuthType Basic + AuthName "Access fuer <%= servername %>" + AuthUserFile <%= real_htpasswd_path %> + require valid-user + <%- end -%> + + + ScriptAlias /cgi-bin/ <%= cgi_binpath %>/ + <%- unless htpasswd_file.to_s == 'absent' then -%> + /"> + AuthType Basic + AuthName "Access fuer <%= servername %>" + AuthUserFile <%= real_htpasswd_path %> + require valid-user + + <%- end -%> + + + SecRuleEngine <%= if mod_security.to_s == 'true' then "On" else "Off" end %> + + + <%- unless additional_options.to_s == 'absent' then -%> + <%= additional_options %> + <%- end -%> + RewriteEngine on + RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) + RewriteRule .* - [F] + -- cgit v1.2.3