OK, I get it. Path to htauth must be absolute. Adding .htaccess to .gitignore.