fix template generation for auth_basic vhosts