From f4ff26f1b89c405f714aca98cd2078fab678ae1e Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 8 Nov 2008 14:22:42 +0000 Subject: added options for vhosts --- templates/vhosts/php/CentOS.erb | 4 +++- templates/vhosts/static/OpenBSD.erb | 12 ++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index 6e991be..53251ad 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -12,7 +12,9 @@ "> AllowOverride <%= allow_override %> - + <%- unless options.to_s == 'absent' then -%> + Options <%= options %> + <%- end %> php_admin_flag engine on php_admin_value open_basedir <%= documentroot %>:<%= php_upload_tmp_dir %>:<%= php_session_save_path %> php_admin_value upload_tmp_dir <%= php_upload_tmp_dir %> diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb index 7751c6d..d5714f0 100644 --- a/templates/vhosts/static/OpenBSD.erb +++ b/templates/vhosts/static/OpenBSD.erb @@ -14,6 +14,12 @@ Redirect permanent / https://<%= servername %>/ <%- end %> + <%- unless options.to_s == 'absent' then -%> + "> + Options <%= options %> + + + <%- end %> <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> @@ -31,6 +37,12 @@ ErrorLog <%= logdir %>/error_log CustomLog <%= logdir %>/access_log combined + <%- unless options.to_s == 'absent' then -%> + "> + Options <%= options %> + + + <%- end %> <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> <%- end -%> -- cgit v1.2.3