diff options
author | mh <mh@immerda.ch> | 2008-11-08 15:52:31 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-11-08 15:52:31 +0000 |
commit | 84827754f2feed2a7c92a0ecdf1d094fbed292bc (patch) | |
tree | bd7cdc4f018439ee66ddeb1c76b75189ba8e2659 /templates/vhosts/php/CentOS.erb | |
parent | f4ff26f1b89c405f714aca98cd2078fab678ae1e (diff) |
added htpasswd deploy capability
Diffstat (limited to 'templates/vhosts/php/CentOS.erb')
-rw-r--r-- | templates/vhosts/php/CentOS.erb | 12 |
1 files changed, 10 insertions, 2 deletions
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 @@ <Directory "<%= documentroot %>"> 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 %> |