Added support for private directory using htpasswd