From 84827754f2feed2a7c92a0ecdf1d094fbed292bc Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 8 Nov 2008 15:52:31 +0000 Subject: added htpasswd deploy capability --- templates/vhosts/php/CentOS.erb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'templates/vhosts/php/CentOS.erb') diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index 53251ad..96e5d27 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -12,9 +12,17 @@ "> AllowOverride <%= allow_override %> - <%- unless options.to_s == 'absent' then -%> + <%- unless options.to_s == 'absent' then -%> Options <%= options %> - <%- end %> + <%- end %> + <%- unless htpasswd_file.to_s == 'absent' then -%> + + AuthType Basic + AuthName "Access fuer <%= servername %>" + AuthUserFile <%= htpasswd_path %> + require valid-user + + <%- 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 %> -- cgit v1.2.3